From a9f2dd07b3bd9b2074b8cef7ee68abaefb7bbd4d Mon Sep 17 00:00:00 2001 From: jao Date: Wed, 2 Mar 2022 01:47:24 +0000 Subject: nits --- gnus.org | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'gnus.org') diff --git a/gnus.org b/gnus.org index c4afb8e..1cf1690 100644 --- a/gnus.org +++ b/gnus.org @@ -119,7 +119,7 @@ (setq gnus-search-use-parsed-queries t gnus-search-notmuch-raw-queries-p nil - gnus-permanently-visible-groups "^nnselect:.*today" + gnus-permanently-visible-groups "^nnselect:.*" gnus-search-ignored-newsgroups "nndraft.*\\|nnselect.*") (with-eval-after-load "gnus-search" @@ -136,7 +136,7 @@ (remove-prefix ,prefix) (config-file ,config)))) - (add-to-list 'gnus-parameters '("^nnselect:.*" (nnselect-rescan . t))) + ;; (add-to-list 'gnus-parameters '("^nnselect:.*" (nnselect-rescan . t))) #+end_src * News server @@ -289,7 +289,7 @@ (add-to-list 'gnus-secondary-select-methods '(nnimap "gandi" (nnimap-address "mail.gandi.net")))) #+end_src -* Demons and notifications +* Demon and notifications #+begin_src emacs-lisp (setq mail-user-agent 'gnus-user-agent) @@ -354,12 +354,13 @@ (jao-gnus--notify))) (require 'gnus-demon) - (gnus-demon-add-handler 'jao-gnus-scan 5 5) + (gnus-demon-add-handler 'gnus-demon-scan-news 5 1) ;; (gnus-demon-remove-handler 'jao-gnus-scan) (add-hook 'gnus-started-hook #'jao-gnus-scan) (add-hook 'gnus-summary-exit-hook #'jao-gnus--notify) (add-hook 'gnus-summary-exit-hook #'org-agenda-list) + (add-hook 'gnus-after-getting-new-news-hook #'jao-gnus-scan) (with-eval-after-load "jao-minibuffer" (jao-minibuffer-add-variable 'jao-gnus--notify-strs -20)) -- cgit v1.2.3