X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=emacs%2Fnotmuch-hello.el;h=97db90e51a24875c17184363f0d2cfc03c2f0c92;hp=82a3a4b1d56602ba4465e165d9e3e9aa534bd554;hb=f8e372ebeccff4e2cba323d75ac1278cb22828b9;hpb=2a6a0e248174d93f431018ce8b809fc0fdebd847 diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index 82a3a4b1..97db90e5 100644 --- a/emacs/notmuch-hello.el +++ b/emacs/notmuch-hello.el @@ -198,6 +198,12 @@ diagonal." (interactive) (notmuch-hello no-display)) +(defun notmuch-hello-poll-and-update () + "Invoke `notmuch-poll' to import mail, then refresh the current view." + (interactive) + (notmuch-poll) + (notmuch-hello-update)) + (defun notmuch-hello (&optional no-display) (interactive) @@ -386,6 +392,7 @@ diagonal." (use-local-map widget-keymap) (local-set-key "=" 'notmuch-hello-update) + (local-set-key "G" 'notmuch-hello-poll-and-update) (local-set-key "m" 'notmuch-mua-mail) (local-set-key "q" '(lambda () (interactive) (kill-buffer (current-buffer)))) (local-set-key "s" 'notmuch-hello-goto-search)