diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-08-13 14:03:39 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-08-13 14:03:39 +0200 |
commit | 01d51379186aebb296a5644d1f629d87f192d94f (patch) | |
tree | f33922de0c352fcea9d6092bfb331ed39f57e5ca /.config/emacs/config.org | |
parent | 7f173db54c8876fae7492d514fd21ac67be7fb07 (diff) |
emacs: Add basic mu4e config
Diffstat (limited to '.config/emacs/config.org')
-rw-r--r-- | .config/emacs/config.org | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/.config/emacs/config.org b/.config/emacs/config.org index 919109f..f12a918 100644 --- a/.config/emacs/config.org +++ b/.config/emacs/config.org @@ -975,3 +975,37 @@ mixed on when I do and -don’t want it. I always want it in ~org-mode~ though. (add-hook 'org-mode-hook #'auto-fill-mode) #+END_SRC + +** Email + +#+BEGIN_SRC elisp + + (use-package mu4e + :ensure nil + :custom + (mu4e-change-filenames-when-moving t) + (mu4e-get-mail-command "mbsync -a -c /home/thomas/.config/isync/mbsyncrc") + (mu4e-maildir "~/mail") + :config + (setq mm--mu4e-personal-context + (make-mu4e-context + :name "Personal" + :match-func + (lambda (msg) + (when msg + (string-prefix-p "/mail@thomasvoss.com" (mu4e-message-field msg :maildir)))) + :vars '((user-mail-address . "mail@thomasvoss.com") + (user-full-name . "Thomas Voss") + (mu4e-drafts-folder . "/Drafts") + (mu4e-sent-folder . "/Sent") + (mu4e-refile-folder . "/Archive") + (mu4e-trash-folder . "/Junk") + (mu4e-maildir-shortcuts . '(("/Inbox" . ?i) + ("/Sent" . ?s) + ("/Archive" . ?a) + ("/Drafts" . ?d) + ("/Junk" . ?j)))))) + + (setq mu4e-contexts (list mm--mu4e-personal-context))) + +#+END_SRC |