aboutsummaryrefslogtreecommitdiff
path: root/Emacs/.config
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2020-09-01 23:27:11 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2020-09-01 23:27:11 +0100
commitce90a7c2cfdb0545e9dc7bcdba99eb2adb8828f5 (patch)
tree88d8d9a1398922c669f6d3390cbf10b51c19c43b /Emacs/.config
parente76fabccbe9a5d80f4949dc859c43d0943c13226 (diff)
downloaddotfiles-ce90a7c2cfdb0545e9dc7bcdba99eb2adb8828f5.tar.gz
dotfiles-ce90a7c2cfdb0545e9dc7bcdba99eb2adb8828f5.tar.bz2
dotfiles-ce90a7c2cfdb0545e9dc7bcdba99eb2adb8828f5.zip
~rearrange notmuch config
Diffstat (limited to 'Emacs/.config')
-rw-r--r--Emacs/.config/emacs/config.org30
1 files changed, 16 insertions, 14 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org
index aaa3f85..7612851 100644
--- a/Emacs/.config/emacs/config.org
+++ b/Emacs/.config/emacs/config.org
@@ -977,25 +977,27 @@ Integrating mail into Emacs helps as I can send source code and
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)
+ :init
+ (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"))
: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)
- (message-auto-save-directory +mail/local-dir)
- (message-directory +mail/local-dir))
+ (notmuch-show-logo nil)
+ (mail-signature +mail/signature)
+ (mail-default-directory +mail/local-dir)
+ (mail-source-directory +mail/local-dir)
+ (message-signature +mail/signature)
+ (message-auto-save-directory +mail/local-dir)
+ (message-directory +mail/local-dir)
:config
;; sync mail after refresh
(advice-add #'notmuch-poll-and-refresh-this-buffer :before