summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2026-11-25 22:43:23 +0000
committerjao <jao@gnu.org>2026-11-25 22:43:23 +0000
commit686833be40318566064909ad337f8747c0e84f95 (patch)
treed09e1e7b5bdc5e1d159ec42541f6d470fc368441
parent9842f1ee27c2839d082958a7d9c6b72be17dc92e (diff)
downloadelibs-686833be40318566064909ad337f8747c0e84f95.tar.gz
elibs-686833be40318566064909ad337f8747c0e84f95.tar.bz2
notmuch: command to fetch remote mailmain
-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)