summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2019-08-21 20:18:14 -0400
committerAmin Bandali <bandali@gnu.org>2019-08-21 20:18:14 -0400
commite81c7cd4fecdf9d04f687922ccaea85454a23f2d (patch)
tree1655bca1794816dea5a97b7e5f996beac8c0205b
parent1c9d04d792677faed5ec68a8fdc42d44c827ae74 (diff)
downloadconfigs-e81c7cd4fecdf9d04f687922ccaea85454a23f2d.tar.gz
configs-e81c7cd4fecdf9d04f687922ccaea85454a23f2d.tar.xz
configs-e81c7cd4fecdf9d04f687922ccaea85454a23f2d.zip
emacs: gnus: fix regexp for lists.sr.ht lists
omitting one dot if present. e.g., ~sircmpwn/sr.ht-dev@lists.sr.ht => l.~sircmpwn.srht-dev
-rw-r--r--.emacs.d/init.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index d3f8850..0d23dfe 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -1599,8 +1599,9 @@ For disabling the behaviour for certain buffers and/or modes."
;; (: gnus-group-split-fancy "INBOX" t "INBOX")
;; gnu
(list ".*<\\(.*\\)\\.\\(non\\)?gnu\\.org>.*" "l.\\1")
- ;; *@lists.sr.ht
- (list ".*<~\\(.*\\)/\\(.*\\)@lists.sr.ht>" "l.~\\1.\\2")
+ ;; *@lists.sr.ht, omitting one dot if present
+ ;; add more \\.?\\([^.@]*\\) if needed
+ (list ".*<~\\(.*\\)/\\([^.@]*\\)\\.?\\([^.@]*\\)@lists.sr.ht>.*" "l.~\\1.\\2\\3")
;; webmasters
(from "webmasters\\(-comment\\)?@gnu\\.org" "webmasters")
;; other