summaryrefslogtreecommitdiff
path: root/files/emacs/.emacs.d/gnus.el
blob: bded303d88dacf3a17c278ac53f64ee3766e53e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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)