From 3320ca2a1a2278f743aaa53fdb819a3ebac590ed Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Tue, 31 Oct 2023 13:34:48 -0400 Subject: fixes --- emacs/.config/emacs-kj/lisp/kj-email.el | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'emacs/.config') 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) -- cgit v1.2.3