diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2020-08-18 22:13:08 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2020-08-18 22:14:08 +0100 |
commit | 783fa1fe8cdac17255c5c81e9cfdabfaf62b23e4 (patch) | |
tree | 4e74aecb2fb6f188b0b912ba24e8720e30bc1872 /Emacs/.config | |
parent | ac7f1846c6df82133199310789782a7a9d179b76 (diff) | |
download | dotfiles-783fa1fe8cdac17255c5c81e9cfdabfaf62b23e4.tar.gz dotfiles-783fa1fe8cdac17255c5c81e9cfdabfaf62b23e4.tar.bz2 dotfiles-783fa1fe8cdac17255c5c81e9cfdabfaf62b23e4.zip |
~move around a few configuration options, +mail/local-dir
New local directory for mail in user-emacs-directory
Diffstat (limited to 'Emacs/.config')
-rw-r--r-- | Emacs/.config/emacs/config.org | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 7ec0a2c..6b86b31 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -456,19 +456,24 @@ integrate it into my workflow just a bit better. ** Notmuch #+begin_src emacs-lisp (setq +mail/signature "---------------\nAryadev Chavali") +(defconst +mail/local-dir (concat user-emacs-directory ".mail/")) +(defun +mail/sync-mail () + "Sync mail via mbsync." + (interactive) + (start-process-shell-command "" nil "mbsync -a")) + (use-package notmuch :commands notmuch :general (leader "am" #'notmuch) :custom ((notmuch-show-logo nil) + (mail-signature +mail/signature) + (mail-default-directory +mail/local-dir) + (mail-source-directory +mail/local-dir) (message-signature +mail/signature) - (mail-signature +mail/signature)) - :init - (defun +mail/sync-mail () - "Sync mail via mbsync." - (interactive) - (start-process-shell-command "" nil "mbsync -a")) + (message-auto-save-directory +mail/local-dir) + (message-directory +mail/local-dir)) :config (evil-define-key 'normal notmuch-hello-mode-map "M" #'+mail/sync-mail) (evil-collection-notmuch-setup)) |