From e8a0ff014d47430195e19a09d793741abc037357 Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Sat, 18 Apr 2020 10:55:49 +0200 Subject: [PATCH] Gnus: Init. --- .emacs.d/init.el | 2 ++ .emacs.d/lisp/init-gnus.el | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 .emacs.d/lisp/init-gnus.el diff --git a/.emacs.d/init.el b/.emacs.d/init.el index f61d2192..cd9131da 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -121,6 +121,8 @@ (when (require 'expand-region nil t) (global-set-key (kbd "C-=") 'er/expand-region)) +(with-eval-after-load 'gnus (require 'init-gnus)) + (with-eval-after-load 'go-mode (require 'init-go)) ;;; Graphviz-dot-mode: The view command is broken but the preview command works diff --git a/.emacs.d/lisp/init-gnus.el b/.emacs.d/lisp/init-gnus.el new file mode 100644 index 00000000..d5d39890 --- /dev/null +++ b/.emacs.d/lisp/init-gnus.el @@ -0,0 +1,18 @@ +;; Useful to navigate mailist archives. + +;; M-x gnus +;; M-x gnus-group-enter-server-mode +;; Subscribe to desired lists and go back to groups. + +(with-eval-after-load 'gnus + (setq gnus-select-method '(nnnil) + gnus-expert-user t + gnus-always-read-dribble-file t + gnus-thread-sort-functions '(gnus-thread-sort-by-most-recent-number) + gnus-article-sort-functions gnus-thread-sort-functions + gnus-secondary-select-methods + '((nntp "news.gmane.io"))) + (setq nnir-method-default-engines '((nntp . gmane) (nnmaildir . notmuch))) + (add-hook 'gnus-group-mode-hook 'gnus-topic-mode)) + +(provide 'init-gnus)