From 56ecd2046d7a111d2ce406472a1757cdfa5091db Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Tue, 18 Aug 2020 22:15:22 +0100 Subject: +adivce to notmuch-refresh-buffer to sync mail as well --- Emacs/.config/emacs/config.org | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Emacs/.config/emacs/config.org') diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 6b86b31..bffc83e 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -475,7 +475,9 @@ integrate it into my workflow just a bit better. (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) + ;; sync mail after refresh + (advice-add #'notmuch-poll-and-refresh-this-buffer :before + #'+mail/sync-mail) (evil-collection-notmuch-setup)) #+end_src ** Smtpmail -- cgit v1.2.3-13-gbd6f