diff options
Diffstat (limited to 'emacs')
-rw-r--r-- | emacs/.config/emacs-kj/lisp/kj-email.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/emacs/.config/emacs-kj/lisp/kj-email.el b/emacs/.config/emacs-kj/lisp/kj-email.el index 2d74164..509f615 100644 --- a/emacs/.config/emacs-kj/lisp/kj-email.el +++ b/emacs/.config/emacs-kj/lisp/kj-email.el @@ -18,6 +18,11 @@ (add-hook 'message-send-hook #'kj/confirm-empty-subject) +(advice-add + 'notmuch :before (defun kj/notmuch-switch-to-local () + (when (file-remote-p default-directory) + (cd (expand-file-name "~"))))) + (setq notmuch-saved-searches '((:name "inbox" :query "tag:inbox -tag:_gz" :key "i" :search-type tree) (:name "unread" :query "tag:unread" :key "u" :search-type tree) |