diff options
author | jdlugosz963 <jdlugosz963@gmail.com> | 2023-10-19 19:24:35 +0200 |
---|---|---|
committer | jdlugosz963 <jdlugosz963@gmail.com> | 2023-10-19 19:24:35 +0200 |
commit | c6c985d1188830ac90a546cfa27a77c220c9d096 (patch) | |
tree | b2aaaebfbcbd4141eb6ca5cf533a7e0db2cbe962 /.emacs.d/jd/jd-mu4e.el | |
parent | 2a5d171484392d55f3abfd9e48807edc77c182b0 (diff) | |
download | dotfiles-c6c985d1188830ac90a546cfa27a77c220c9d096.tar.gz dotfiles-c6c985d1188830ac90a546cfa27a77c220c9d096.zip |
Add stumpwm and change disk config for berserker.
Diffstat (limited to '.emacs.d/jd/jd-mu4e.el')
-rwxr-xr-x | .emacs.d/jd/jd-mu4e.el | 127 |
1 files changed, 67 insertions, 60 deletions
diff --git a/.emacs.d/jd/jd-mu4e.el b/.emacs.d/jd/jd-mu4e.el index e97c4fc..cb81c5c 100755 --- a/.emacs.d/jd/jd-mu4e.el +++ b/.emacs.d/jd/jd-mu4e.el | |||
@@ -3,77 +3,84 @@ | |||
3 | 3 | ||
4 | (jd/use-package htmlize "emacs-htmlize") | 4 | (jd/use-package htmlize "emacs-htmlize") |
5 | 5 | ||
6 | ; (jd/add-package-to-manifest "mbsync") ;; TODO: Define guix mbsync package? | 6 | (jd/add-package-to-manifest "isync") |
7 | 7 | ||
8 | (jd/use-package mu4e "mu" | 8 | (jd/use-package mu4e "mu" |
9 | :defer 10 | 9 | :defer 10 |
10 | :ensure nil | 10 | :ensure nil |
11 | :config | 11 | :bind |
12 | (require 'org-mu4e) | 12 | ("C-c M" . mu4e) |
13 | :config | ||
14 | ;a (require 'org-mu4e) | ||
13 | 15 | ||
14 | (setq mu4e-mu-binary "/usr/local/bin/mu") | 16 | (if jd/guix-p |
15 | (setq mu4e-update-interval (* 10 60)) | 17 | (setq mu4e-mu-binary "/home/jakub/.guix-extra-profiles/emacs/emacs/bin/mu") |
16 | (setq mu4e-get-mail-command "mbsync -a") | 18 | (setq mu4e-mu-binary "/usr/local/bin/mu")) |
17 | (setq mu4e-maildir "~/Mail") | ||
18 | 19 | ||
19 | (setq mu4e-completing-read-function #'ivy-completing-read) | 20 | (setq mu4e-update-interval (* 10 60)) |
21 | (setq mu4e-get-mail-command "mbsync -a") | ||
22 | (setq mu4e-maildir "~/Mail") | ||
20 | 23 | ||
21 | (setq mu4e-change-filenames-when-moving t) | 24 | (setq mu4e-completing-read-function #'ivy-completing-read) |
22 | 25 | ||
23 | (setq mu4e-contexts | 26 | (setq mu4e-change-filenames-when-moving t) |
24 | `(,(make-mu4e-context | ||
25 | :name "Abaks" | ||
26 | :match-func (lambda (msg) (when msg | ||
27 | (string-prefix-p "/abaks" (mu4e-message-field msg :maildir)))) | ||
28 | :vars '( | ||
29 | (user-full-name . "Jakub Dlugosz") | ||
30 | (user-mail-address . "jakub@abaks.pl") | ||
31 | (mu4e-sent-folder . "/abaks/Sent Items") | ||
32 | (mu4e-trash-folder . "/abaks/Trash") | ||
33 | (mu4e-drafts-folder . "/abaks/Drafts") | ||
34 | (mu4e-refile-folder . "/abaks/Archive") | ||
35 | (smtpmail-local-domain . "pl") | ||
36 | (smtpmail-smtp-server . "smtp.abaks.pl") | ||
37 | (mu4e-sent-messages-behavior . sent) | ||
38 | )) | ||
39 | ,(make-mu4e-context | ||
40 | :name "Gmail" | ||
41 | :match-func (lambda (msg) (when msg | ||
42 | (string-prefix-p "/gmail" (mu4e-message-field msg :maildir)))) | ||
43 | :vars '( | ||
44 | (user-full-name . "Jakub Dlugosz") | ||
45 | (user-mail-address . "jdlugosz963@gmail.com") | ||
46 | (mu4e-sent-folder . "/gmail/\[Gmail\]/Wys\&AUI-ane") | ||
47 | (mu4e-trash-folder . "/gmail/\[Gmail\]/Kosz") | ||
48 | (mu4e-drafts-folder . "/gmail/\[Gmail\]/Wersje\ robocze") | ||
49 | (mu4e-refile-folder . "/gmail/Archive") | ||
50 | (smtpmail-local-domain . "com") | ||
51 | (smtpmail-smtp-server . "smtp.gmail.com") | ||
52 | (mu4e-sent-messages-behavior . sent) | ||
53 | )))) | ||
54 | 27 | ||
55 | (setq mail-user-agent 'mu4e-user-agent | 28 | (setq mu4e-contexts |
56 | mail-host-address nil | 29 | `(,(make-mu4e-context |
57 | message-send-mail-function 'smtpmail-send-it | 30 | :name "Abaks" |
58 | smtpmail-smtp-service 465 | 31 | :match-func (lambda (msg) (when msg |
59 | smtpmail-stream-type 'ssl) | 32 | (string-prefix-p "/abaks" (mu4e-message-field msg :maildir)))) |
33 | :vars '( | ||
34 | (user-full-name . "Jakub Dlugosz") | ||
35 | (user-mail-address . "jakub@abaks.pl") | ||
36 | (mu4e-sent-folder . "/abaks/Sent Items") | ||
37 | (mu4e-trash-folder . "/abaks/Trash") | ||
38 | (mu4e-drafts-folder . "/abaks/Drafts") | ||
39 | (mu4e-refile-folder . "/abaks/Archive") | ||
40 | (mu4e-sent-messages-behavior . sent) | ||
41 | (smtpmail-local-domain . "pl") | ||
42 | (smtpmail-smtp-server . "smtp.abaks.pl") | ||
43 | (smtpmail-smtp-user . "jakub@abaks.pl"))) | ||
44 | ,(make-mu4e-context | ||
45 | :name "Gmail" | ||
46 | :match-func (lambda (msg) (when msg | ||
47 | (string-prefix-p "/gmail" (mu4e-message-field msg :maildir)))) | ||
48 | :vars '( | ||
49 | (user-full-name . "Jakub Dlugosz") | ||
50 | (user-mail-address . "jdlugosz963@gmail.com") | ||
51 | (mu4e-sent-folder . "/gmail/\[Gmail\]/Wys\&AUI-ane") | ||
52 | (mu4e-trash-folder . "/gmail/\[Gmail\]/Kosz") | ||
53 | (mu4e-drafts-folder . "/gmail/\[Gmail\]/Wersje\ robocze") | ||
54 | (mu4e-refile-folder . "/gmail/Archive") | ||
55 | (smtpmail-local-domain . "com") | ||
56 | (smtpmail-smtp-server . "smtp.gmail.com") | ||
57 | (smtpmail-smtp-user . "jdlugosz963@gmail.com") | ||
58 | (mu4e-sent-messages-behavior . sent))))) | ||
60 | 59 | ||
61 | (setq mu4e-compose-signature (concat | 60 | (setq mail-user-agent 'mu4e-user-agent |
62 | "Pozdrawiam,\n" | 61 | mail-host-address nil |
63 | "Jakub Długosz")) | 62 | message-send-mail-function 'smtpmail-send-it |
63 | smtpmail-smtp-service 465 | ||
64 | smtpmail-stream-type 'ssl | ||
65 | smtpmail-servers-requiring-authorization ".*") | ||
64 | 66 | ||
65 | (mu4e t)) | 67 | (setq mu4e-compose-signature (concat |
68 | "Pozdrawiam,\n" | ||
69 | "Jakub Długosz")) | ||
70 | |||
71 | (mu4e t) | ||
72 | (mu4e-modeline-mode nil)) | ||
66 | 73 | ||
67 | (jd/use-package mu4e-alert "emacs-mu4e-alert" | 74 | (jd/use-package mu4e-alert "emacs-mu4e-alert" |
68 | :defer 20 | 75 | :defer 20 |
69 | :config | 76 | :config |
70 | (mu4e-alert-set-default-style 'libnotify) | 77 | (mu4e-alert-set-default-style 'libnotify) |
71 | (mu4e-alert-enable-mode-line-display) | 78 | (mu4e-alert-enable-mode-line-display) |
72 | (mu4e-alert-enable-notifications) | 79 | (mu4e-alert-enable-notifications) |
73 | 80 | ||
74 | (jd/leader-key-def | 81 | (jd/leader-key-def |
75 | "m" '(:ignore t :which-key "mail") | 82 | "m" '(:ignore t :which-key "mail") |
76 | "mm" 'mu4e | 83 | "mm" 'mu4e |
77 | "mc" 'mu4e-compose-new)) | 84 | "mc" 'mu4e-compose-new)) |
78 | 85 | ||
79 | (provide 'jd-mu4e) | 86 | (provide 'jd-mu4e) |