summaryrefslogtreecommitdiffstats
path: root/.config/emacs/jd/jd-mu4e.el
diff options
context:
space:
mode:
authorjdlugosz963 <jdlugosz963@gmail.com>2023-07-02 15:07:07 +0200
committerjdlugosz963 <jdlugosz963@gmail.com>2023-07-02 15:07:07 +0200
commit6156f86dd5797de5ea4f912b70d38963c6cf4ad4 (patch)
treed578204262209695d995e3f639076e91dcb85354 /.config/emacs/jd/jd-mu4e.el
parentef565a486511cbbb86e0d1f80264b3b57d2ac88a (diff)
downloaddotfiles-6156f86dd5797de5ea4f912b70d38963c6cf4ad4.tar.gz
dotfiles-6156f86dd5797de5ea4f912b70d38963c6cf4ad4.zip
New Emacs config and change location of Emacs home dir.
Diffstat (limited to '.config/emacs/jd/jd-mu4e.el')
-rw-r--r--.config/emacs/jd/jd-mu4e.el76
1 files changed, 0 insertions, 76 deletions
diff --git a/.config/emacs/jd/jd-mu4e.el b/.config/emacs/jd/jd-mu4e.el
deleted file mode 100644
index 0f45f15..0000000
--- a/.config/emacs/jd/jd-mu4e.el
+++ /dev/null
@@ -1,76 +0,0 @@
1(add-to-list 'load-path "/usr/local/share/emacs/site-lisp/mu4e")
2
3(use-package org-msg)
4
5(use-package mu4e
6 :defer 10
7 :ensure nil
8 :config
9 (require 'org-mu4e)
10
11 (setq mu4e-mu-binary "/usr/local/bin/mu")
12 (setq mu4e-update-interval (* 10 60))
13 (setq mu4e-get-mail-command "mbsync -a")
14 (setq mu4e-maildir "~/Mail")
15
16 (setq mu4e-completing-read-function #'ivy-completing-read)
17
18 (setq mu4e-change-filenames-when-moving t)
19
20 (setq mu4e-contexts
21 `(,(make-mu4e-context
22 :name "Abaks"
23 :match-func (lambda (msg) (when msg
24 (string-prefix-p "/abaks" (mu4e-message-field msg :maildir))))
25 :vars '(
26 (user-full-name . "Jakub Dlugosz")
27 (user-mail-address . "jakub@abaks.pl")
28 (mu4e-sent-folder . "/abaks/Sent Items")
29 (mu4e-trash-folder . "/abaks/Trash")
30 (mu4e-drafts-folder . "/abaks/Drafts")
31 (mu4e-refile-folder . "/abaks/Archive")
32 (smtpmail-local-domain . "pl")
33 (smtpmail-smtp-server . "smtp.abaks.pl")
34 (mu4e-sent-messages-behavior . sent)
35 ))
36 ,(make-mu4e-context
37 :name "Gmail"
38 :match-func (lambda (msg) (when msg
39 (string-prefix-p "/gmail" (mu4e-message-field msg :maildir))))
40 :vars '(
41 (user-full-name . "Jakub Dlugosz")
42 (user-mail-address . "jdlugosz963@gmail.com")
43 (mu4e-sent-folder . "/gmail/\[Gmail\]/Wys\&AUI-ane")
44 (mu4e-trash-folder . "/gmail/\[Gmail\]/Kosz")
45 (mu4e-drafts-folder . "/gmail/\[Gmail\]/Wersje\ robocze")
46 (mu4e-refile-folder . "/gmail/Archive")
47 (smtpmail-local-domain . "com")
48 (smtpmail-smtp-server . "smtp.gmail.com")
49 (mu4e-sent-messages-behavior . sent)
50 ))))
51
52 (setq mail-user-agent 'mu4e-user-agent
53 mail-host-address nil
54 message-send-mail-function 'smtpmail-send-it
55 smtpmail-smtp-service 465
56 smtpmail-stream-type 'ssl)
57
58 (setq mu4e-compose-signature (concat
59 "Pozdrawiam,\n"
60 "Jakub Długosz"))
61
62 (mu4e t))
63
64(use-package mu4e-alert
65 :defer 20
66 :config
67 (mu4e-alert-set-default-style 'libnotify)
68 (mu4e-alert-enable-mode-line-display)
69 (mu4e-alert-enable-notifications))
70
71(jd/leader-key-def
72 "m" '(:ignore t :which-key "mail")
73 "mm" 'mu4e
74 "mc" 'mu4e-compose-new)
75
76(provide 'jd-mu4e)