summaryrefslogtreecommitdiffhomepage
path: root/gnus.org
diff options
context:
space:
mode:
Diffstat (limited to 'gnus.org')
-rw-r--r--gnus.org9
1 files changed, 5 insertions, 4 deletions
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))