blob: b27c5adb01105cb72a634a21ebb534907c819389 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
(use-package mu4e
:custom
(mu4e-maildir "~/mail")
(mu4e-get-mail-command "true")
(mu4e-update-interval 120)
(mu4e-use-fancy-chars t)
(mu4e-headers-attach-mark '("a" . "@")) ; alignment fix
(mu4e-headers-fields '((:human-date . 12)
(:flags . 6)
(:from . 22)
(:subject)))
(mu4e-change-filenames-when-moving t)
(sendmail-program "msmtp")
(send-mail-function 'smtpmail-send-it)
(message-sendmail-f-is-evil t)
(message-send-mail-function 'message-send-mail-with-sendmail)
(mu4e-split-view 'single-window)
(mu4e-hide-index-messages t)
(mu4e-completing-read-function 'helm-comp-read)
(shr-color-visible-luminance-min 80)
(doom-modeline-mu4e t)
(doom-modeline-gnus nil)
:config
(require 'org-mu4e)
(evil-collection-init 'mu4e)
(add-hook 'mu4e-compose-mode-hook #'(lambda () (auto-save-mode -1))))
(use-package mu4e-alert
:ensure t
:config
(mu4e-alert-set-default-style 'libnotify)
(add-hook 'after-init-hook #'mu4e-alert-enable-notifications))
(setq mu4e-contexts
`(,(make-mu4e-context
:name "private"
:match-func (lambda (msg)
(when msg
(string-match-p "^/automatix" (mu4e-message-field msg :maildir))))
:vars '((user-mail-address . "adrian@kummerlaender.eu")
(user-full-name . "Adrian Kummerländer")
(mu4e-sent-folder . "/automatix/Sent")
(mu4e-drafts-folder . "/automatix/Drafts")
(mu4e-trash-folder . "/automatix/Trash")
(message-sendmail-extra-arguments . ("--read-envelope-from" "--account=automatix"))))
,(make-mu4e-context
:name "KIT"
:match-func (lambda (msg)
(when msg
(string-match-p "^/kit" (mu4e-message-field msg :maildir))))
:vars '((user-mail-address . "adrian.kummerlaender@student.kit.edu")
(user-full-name . "Adrian Kummerländer")
(mu4e-sent-folder . "/kit/Sent")
(mu4e-drafts-folder . "/kit/Drafts")
(mu4e-trash-folder . "/kit/Trash")
(message-sendmail-extra-arguments . ("--read-envelope-from" "--account=kit"))))))
(evil-leader/set-key "m" 'mu4e)
(add-to-list 'org-capture-templates
'("m" "eMail note" entry (file org-default-notes-file)
"* TODO /%:subject/\n See %a\n\n%?"))
|