summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--custom/jao-custom-notmuch.el9
1 files changed, 8 insertions, 1 deletions
diff --git a/custom/jao-custom-notmuch.el b/custom/jao-custom-notmuch.el
index 1c32d1e..b1f2446 100644
--- a/custom/jao-custom-notmuch.el
+++ b/custom/jao-custom-notmuch.el
@@ -211,7 +211,8 @@
;;; hello
(defun jao-notmuch-refresh-agenda ()
(interactive)
- (save-window-excursion (calendar) (jao-afio-org-agenda)))
+ (save-current-buffer
+ (save-window-excursion (calendar) (jao-afio-org-agenda))))
(defun jao-notmuch-hello-first ()
(interactive)
@@ -254,6 +255,11 @@
(widget-button-press (point))
(widget-forward 1)))
+(defun jao-notmuch-fetch-mail ()
+ (interactive)
+ (message "Fetching email in the background...")
+ (jao-shell-exec "mail-notmuch.sh"))
+
(use-package notmuch-hello
:init
(setq notmuch-column-control 1.0
@@ -279,6 +285,7 @@
:map notmuch-hello-mode-map
(("a" . jao-notmuch-refresh-agenda)
("A" . jao-afio-open-mail)
+ ("F" . jao-notmuch-fetch-mail)
("g" . jao-notmuch-refresh-hello)
("j" . jao-notmuch-jump-search)
("n" . jao-notmuch-hello-next)