summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKΓ©vin Le Gouguec <kevin.legouguec@gmail.com>2020-07-17 12:03:38 +0200
committerKΓ©vin Le Gouguec <kevin.legouguec@gmail.com>2020-07-17 12:03:38 +0200
commit2724b66f07ac986e3675e7c436ce8ff50312dfc4 (patch)
treeeb2866518c8e869810dd28793d97a4f4aa07658a
parentcb7f42016e6d9baaebfdf083c86988d03d6dafc9 (diff)
downloaddotfiles-2724b66f07ac986e3675e7c436ce8ff50312dfc4.tar.xz
Change "sent-by-me" prefix
Searching for "KLG" yields fewer false positives than "me".
-rw-r--r--.gnus9
1 files changed, 7 insertions, 2 deletions
diff --git a/.gnus b/.gnus
index 32b7b12..ea2f7f6 100644
--- a/.gnus
+++ b/.gnus
@@ -16,8 +16,6 @@
'((nntp "archive.lwn.net")
(nntp "news.gmane.io"))
gnus-summary-line-format "%*%U%R %-16,16&user-date; %B%-23,23f %s\n"
- gnus-summary-newsgroup-prefix "me β‡’ "
- gnus-summary-to-prefix "me β†’ "
gnus-summary-dummy-line-format " β•­ %S\n"
gnus-summary-make-false-root 'dummy
gnus-sum-thread-tree-root "β•­ "
@@ -44,6 +42,13 @@
(t
. "%F")))
+(let* ((initials (mapconcat (lambda (s) (substring s 0 1))
+ (split-string user-full-name)
+ nil))
+ (sent-prefix (format "%s β†’ " initials)))
+ (setq gnus-summary-to-prefix sent-prefix
+ gnus-summary-newsgroup-prefix sent-prefix))
+
(setq smtpmail-smtp-server "smtp.gmail.com"
smtpmail-smtp-service 587)