about summary refs log tree commit diff
path: root/init
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2018-06-12T07·11+0200
committerVincent Ambo <mail@tazj.in>2018-06-12T07·12+0200
commit7781a059b3d06a9bc5bb86473686103ebfad6d5f (patch)
tree0db6698c1167e04427a0df21f134710b37b59639 /init
parent711afd3bd5e367df2812ac4e14128b4a034db081 (diff)
fix(mail): Fix setup of drafts & cache folder
Diffstat (limited to 'init')
-rw-r--r--init/mail-setup.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/init/mail-setup.el b/init/mail-setup.el
index cec8b7a3f336..98ad17fed805 100644
--- a/init/mail-setup.el
+++ b/init/mail-setup.el
@@ -3,17 +3,17 @@
 (global-set-key (kbd "C-c m") 'notmuch-hello)
 (global-set-key (kbd "C-c C-e n") 'notmuch-mua-new-mail)
 
-(setq notmuch-cache-dir "~/.cache/notmuch")
+(setq notmuch-cache-dir (format "%s/.cache/notmuch" (getenv "HOME")))
 (make-directory notmuch-cache-dir t)
 
-;; Mark things as read when archiving them:
-(setq notmuch-archive-tags '("-inbox" "-unread" "+archive"))
-
 ;; Cache addresses for completion:
 (setq notmuch-address-save-filename (concat notmuch-cache-dir "/addresses"))
 
 ;; Don't spam my home folder with drafts:
-(setq notmuch-draft-folder notmuch-cache-dir)
+(setq notmuch-draft-folder "drafts") ;; relative to notmuch database
+
+;; Mark things as read when archiving them:
+(setq notmuch-archive-tags '("-inbox" "-unread" "+archive"))
 
 ;; Show me saved searches that I care about:
 (setq notmuch-saved-searches