diff options
Diffstat (limited to '.emacs.d/jd/jd-mu4e.el')
-rwxr-xr-x | .emacs.d/jd/jd-mu4e.el | 84 |
1 files changed, 0 insertions, 84 deletions
diff --git a/.emacs.d/jd/jd-mu4e.el b/.emacs.d/jd/jd-mu4e.el deleted file mode 100755 index b388201..0000000 --- a/.emacs.d/jd/jd-mu4e.el +++ /dev/null | |||
@@ -1,84 +0,0 @@ | |||
1 | ;;; Dotfiles --- Jakub Dlugosz emacs config | ||
2 | ;;; Commentary: | ||
3 | |||
4 | ;;; Code: | ||
5 | |||
6 | (use-package htmlize | ||
7 | :guix-package "emacs-htmlize") | ||
8 | |||
9 | (use-package mu4e | ||
10 | :guix-package ("mu" "isync") | ||
11 | :defer 10 | ||
12 | :ensure nil | ||
13 | :bind | ||
14 | ("C-c M" . mu4e) | ||
15 | :config | ||
16 | ;a (require 'org-mu4e) | ||
17 | |||
18 | (unless jd/guix-p | ||
19 | (add-to-list 'load-path "/usr/local/share/emacs/site-lisp/mu4e") | ||
20 | (setq mu4e-mu-binary "/usr/local/bin/mu")) | ||
21 | |||
22 | (setq mu4e-update-interval (* 10 60)) | ||
23 | (setq mu4e-get-mail-command "mbsync -a") | ||
24 | (setq mu4e-maildir "~/Mail") | ||
25 | |||
26 | (setq mu4e-completing-read-function #'ivy-completing-read) | ||
27 | |||
28 | (setq mu4e-change-filenames-when-moving t) | ||
29 | |||
30 | (setq mu4e-contexts | ||
31 | `(,(make-mu4e-context | ||
32 | :name "Abaks" | ||
33 | :match-func (lambda (msg) (when msg | ||
34 | (string-prefix-p "/abaks" (mu4e-message-field msg :maildir)))) | ||
35 | :vars '( | ||
36 | (user-full-name . "Jakub Dlugosz") | ||
37 | (user-mail-address . "jakub@abaks.pl") | ||
38 | (mu4e-sent-folder . "/abaks/Sent Items") | ||
39 | (mu4e-trash-folder . "/abaks/Trash") | ||
40 | (mu4e-drafts-folder . "/abaks/Drafts") | ||
41 | (mu4e-refile-folder . "/abaks/Archive") | ||
42 | (mu4e-sent-messages-behavior . sent) | ||
43 | (smtpmail-local-domain . "pl") | ||
44 | (smtpmail-smtp-server . "smtp.abaks.pl") | ||
45 | (smtpmail-smtp-user . "jakub@abaks.pl"))) | ||
46 | ,(make-mu4e-context | ||
47 | :name "Gmail" | ||
48 | :match-func (lambda (msg) (when msg | ||
49 | (string-prefix-p "/gmail" (mu4e-message-field msg :maildir)))) | ||
50 | :vars '( | ||
51 | (user-full-name . "Jakub Dlugosz") | ||
52 | (user-mail-address . "jdlugosz963@gmail.com") | ||
53 | (mu4e-sent-folder . "/gmail/\[Gmail\]/Wys\&AUI-ane") | ||
54 | (mu4e-trash-folder . "/gmail/\[Gmail\]/Kosz") | ||
55 | (mu4e-drafts-folder . "/gmail/\[Gmail\]/Wersje\ robocze") | ||
56 | (mu4e-refile-folder . "/gmail/Archive") | ||
57 | (smtpmail-local-domain . "com") | ||
58 | (smtpmail-smtp-server . "smtp.gmail.com") | ||
59 | (smtpmail-smtp-user . "jdlugosz963@gmail.com") | ||
60 | (mu4e-sent-messages-behavior . sent))))) | ||
61 | |||
62 | (setq mail-user-agent 'mu4e-user-agent | ||
63 | mail-host-address nil | ||
64 | message-send-mail-function 'smtpmail-send-it | ||
65 | smtpmail-smtp-service 465 | ||
66 | smtpmail-stream-type 'ssl | ||
67 | smtpmail-servers-requiring-authorization ".*") | ||
68 | |||
69 | (setq mu4e-compose-signature (concat | ||
70 | "Pozdrawiam,\n" | ||
71 | "Jakub Długosz")) | ||
72 | |||
73 | (mu4e t) | ||
74 | (mu4e-modeline-mode nil)) | ||
75 | |||
76 | (use-package mu4e-alert | ||
77 | :guix-package "emacs-mu4e-alert" | ||
78 | :defer 20 | ||
79 | :config | ||
80 | (mu4e-alert-set-default-style 'libnotify) | ||
81 | (mu4e-alert-enable-mode-line-display) | ||
82 | (mu4e-alert-enable-notifications)) | ||
83 | |||
84 | (provide 'jd-mu4e) | ||