From 686833be40318566064909ad337f8747c0e84f95 Mon Sep 17 00:00:00 2001 From: jao Date: Wed, 25 Nov 2026 22:43:23 +0000 Subject: notmuch: command to fetch remote mail --- custom/jao-custom-notmuch.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3