chiark / gitweb /
dot/gnus.el, ...: Move general configuration into the common file.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 18 Apr 2020 18:39:23 +0000 (19:39 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 18 Apr 2020 18:39:23 +0000 (19:39 +0100)
This way, everyone benefits.

dot/gnus-local.el.distorted
dot/gnus.el

index 50b71598e60ded0a73a22eb094f1b7d93b494cae..94c8c32a584256495c80919602093a7c5909213b 100644 (file)
@@ -5,17 +5,8 @@
 ;;; (c) 2014 Mark Wooding
 ;;;
 
 ;;; (c) 2014 Mark Wooding
 ;;;
 
-;;;--------------------------------------------------------------------------
-;;; Random configuration.
-
 (setq auth-sources '("~/.gnus.authinfo"))
 
 (setq auth-sources '("~/.gnus.authinfo"))
 
-(remove-hook 'gnus-mark-article-hook
-            'gnus-summary-mark-read-and-unread-as-read)
-(add-hook 'gnus-mark-article-hook 'gnus-summary-mark-unread-as-read)
-
-(setq gnus-level-unsubscribed 6)
-
 ;;;--------------------------------------------------------------------------
 ;;; How to send mail.
 
 ;;;--------------------------------------------------------------------------
 ;;; How to send mail.
 
index 6c6f4c518e239ceeaaff7ec5d9a5dcb43f4f3d96..1625542e9c2b983a2abec0fe3a5aa3e3ccd21a2f 100644 (file)
@@ -105,6 +105,18 @@ (defun mdw-gnus-article-setup ()
                            " ")))
 (add-hook 'gnus-article-mode-hook #'mdw-gnus-article-setup)
 
                            " ")))
 (add-hook 'gnus-article-mode-hook #'mdw-gnus-article-setup)
 
+;; Don't expire articles on selection if they're alread read.  This provides
+;; a handy way to prevent expiry, and actually forcing expiry isn't
+;; significantly harder.
+(remove-hook 'gnus-mark-article-hook
+            'gnus-summary-mark-read-and-unread-as-read)
+(add-hook 'gnus-mark-article-hook 'gnus-summary-mark-unread-as-read)
+
+;; Leave an oubliette level 7 for broken things which look like mailboxes.
+;; Otherwise Gnus keeps on resurrecting them and later realising that they're
+;; bogus.
+(setq gnus-level-unsubscribed 6)
+
 ;;;--------------------------------------------------------------------------
 ;;; Magic for sending mail the correct way.
 
 ;;;--------------------------------------------------------------------------
 ;;; Magic for sending mail the correct way.