]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-hello.el
notmuch-hello: Add a 'G' keybinding.
[notmuch] / emacs / notmuch-hello.el
index 82a3a4b1d56602ba4465e165d9e3e9aa534bd554..97db90e51a24875c17184363f0d2cfc03c2f0c92 100644 (file)
@@ -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)