summaryrefslogtreecommitdiff
path: root/files/emacs/.emacs.d/gnus.el
diff options
context:
space:
mode:
authorMitch Taylor <mitch@mitchtaylor.xyz>2026-03-22 22:07:22 -0300
committerMitch Taylor <mitch@mitchtaylor.xyz>2026-03-22 22:07:22 -0300
commit04126e9fda050fa753ddc22511e3c3f8dc275f7a (patch)
tree41d9f9276c1e09c1cb86f94133bdf90f041d1ed2 /files/emacs/.emacs.d/gnus.el
initial commit
Diffstat (limited to 'files/emacs/.emacs.d/gnus.el')
-rw-r--r--files/emacs/.emacs.d/gnus.el48
1 files changed, 48 insertions, 0 deletions
diff --git a/files/emacs/.emacs.d/gnus.el b/files/emacs/.emacs.d/gnus.el
new file mode 100644
index 0000000..bded303
--- /dev/null
+++ b/files/emacs/.emacs.d/gnus.el
@@ -0,0 +1,48 @@
+;;; gnus.el --- Gnus Configuration -*- lexical-binding: t; -*-
+(setq gnus-select-method '(nnnil nil))
+
+(setq gnus-secondary-select-methods
+ '((nnimap "disroot"
+ (nnimap-address "disroot.org")
+ (nnimap-server-port "imaps")
+ (nnimap-inbox "INBOX/disroot")
+ (nnimap-user "mitchtaylor@disroot.org")
+ (nnimap-stream ssl))
+ (nnimap "cockmail"
+ (nnimap-address "mail.cock.li")
+ (nnimap-server-port "imaps")
+ (nnimap-inbox "INBOK")
+ (nnimap-user "tractorhearted@cock.li")
+ (nnimap-stream ssl))))
+
+(setq gnus-posting-styles
+ '(( ".*"
+ (address "Mitch Taylor <mitch@mitchtaylor.xyz>")
+ ("X-Message-SMTP-Method"
+ "smtp disroot.org 465 mitchtaylor@disroot.org"))
+ ( "nnimap\\+cockmail:"
+ (name "James Mason")
+ (address "James Mason <tractorhearted@cock.li>")
+ ("X-Message-SMTP-Method"
+ "smtp mail.cock.li 465 tractorhearted@cock.li"))))
+
+(when window-system
+ (setq gnus-sum-thread-tree-indent " ")
+ (setq gnus-sum-thread-tree-root "● ")
+ (setq gnus-sum-thread-tree-false-root "◯ ")
+ (setq gnus-sum-thread-tree-single-indent "◎ ")
+ (setq gnus-sum-thread-tree-vertical "│")
+ (setq gnus-sum-thread-tree-leaf-with-other "├─► ")
+ (setq gnus-sum-thread-tree-single-leaf "╰─► "))
+(setq gnus-summary-line-format
+ (concat
+ "%0{%U%R%z%}"
+ "%3{│%}" "%1{%d%}" "%3{│%}" ;; date
+ " "
+ "%4{%-20,20f%}" ;; name
+ " "
+ "%3{│%}"
+ " "
+ "%1{%B%}"
+ "%s\n"))
+(setq gnus-summary-display-arrow t)