summaryrefslogtreecommitdiffstats
path: root/.emacs.d/lisp
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2023-02-20 11:10:19 -0500
committerAmin Bandali <bandali@gnu.org>2023-02-20 11:10:19 -0500
commit7598435441b039065b9384cab29f8c3cae308ae8 (patch)
treeecd21bcd9374b25acd88ad0bb87ac5418f0680e9 /.emacs.d/lisp
parent702404f7838fd3cc8f73ae00d363099a7fcdbc03 (diff)
downloadconfigs-7598435441b039065b9384cab29f8c3cae308ae8.tar.gz
configs-7598435441b039065b9384cab29f8c3cae308ae8.tar.xz
configs-7598435441b039065b9384cab29f8c3cae308ae8.zip
Update primary Canonical mail and a few other small tweaks
Diffstat (limited to '.emacs.d/lisp')
-rw-r--r--.emacs.d/lisp/bandali-gnus.el7
-rw-r--r--.emacs.d/lisp/bandali-message.el10
2 files changed, 15 insertions, 2 deletions
diff --git a/.emacs.d/lisp/bandali-gnus.el b/.emacs.d/lisp/bandali-gnus.el
index e09fa30..63c7c00 100644
--- a/.emacs.d/lisp/bandali-gnus.el
+++ b/.emacs.d/lisp/bandali-gnus.el
@@ -257,6 +257,8 @@
(setq gnus-thread-sort-functions '(gnus-thread-sort-by-number
gnus-thread-sort-by-subject
gnus-thread-sort-by-date))
+ (with-eval-after-load 'message
+ (setq gnus-ignored-from-addresses message-dont-reply-to-names))
;; local key bindings
(define-key gnus-summary-mode-map (kbd "M-L") #'org-store-link)
;; (define-key gnus-summary-mode-map (kbd "r")
@@ -311,7 +313,7 @@
("X-Message-SMTP-Method" "smtp mail.shemshak.org 587")
(gcc "nnimap+shemshak:Sent"))
("nnimap\\+canonical:.*"
- (address "amin.bandali@canonical.com")
+ (address "bandali@canonical.com")
("X-Message-SMTP-Method" "smtp smtp.canonical.com 587")
(signature nil)
(gcc "nnimap+canonical:Sent"))
@@ -366,6 +368,9 @@
'mm-archive-decoders
'("application/gzip" nil "gunzip" "-S" ".zip" "-kd" "%f" "-r")))
+(with-eval-after-load 'gnus-start
+ (add-hook 'gnus-after-getting-new-news-hook #'gnus-notifications))
+
(with-eval-after-load 'mm-decode
(setq
;; mm-attachment-override-types `("text/x-diff" "text/x-patch"
diff --git a/.emacs.d/lisp/bandali-message.el b/.emacs.d/lisp/bandali-message.el
index 137e3b3..8e13d73 100644
--- a/.emacs.d/lisp/bandali-message.el
+++ b/.emacs.d/lisp/bandali-message.el
@@ -59,7 +59,15 @@
message-subscribed-address-functions
'(gnus-find-subscribed-addresses)
message-dont-reply-to-names
- "\\(\\(bandali@kelar\\.org\\)\\|\\(amin@shemshak\\.org\\)\\|\\(\\(bandali\\|mab\\|aminb?\\)@gnu\\.org\\)\\|\\(a?bandali@\\(csclub\\.\\)?uwaterloo\\.ca\\)\\|amin\\.bandali@\\(canonical\\|savoirfairelinux\\)\\.com\\)")
+ (mapconcat
+ #'identity
+ '("\\(bandali\\|mab\\|aminb?\\)@gnu\\.org"
+ "bandali@kelar\\.org"
+ "amin@shemshak\\.org"
+ "a?bandali@\\(csclub\\.\\)?uwaterloo\\.ca"
+ "amin\\.bandali@savoirfairelinux\\.com"
+ "\\(amin\\.\\)?bandali@canonical\\.com")
+ "\\|"))
;; (custom-set-faces
;; '(message-header-subject
;; ((t (:foreground "#111" :weight semi-bold))))