Emacs: bind "g" to 'notuch-refresh-this-buffer

Using "g" for refresh operations is a pretty common Emacs convention,
codified by `special-mode' in simple.el.
This commit is contained in:
Matt Armstrong 2019-02-16 12:27:30 -08:00 committed by David Bremner
parent c09aad4794
commit adde6dfaef
2 changed files with 10 additions and 0 deletions

View file

@ -62,6 +62,7 @@ notmuch-hello key bindings
``<return>``
Activate the current widget.
``g``
``=``
Refresh the buffer; mainly update the counts of messages for various
saved searches.
@ -159,6 +160,10 @@ menu of results that the user can explore further by pressing
``<return>``
Open thread on current line in :ref:`notmuch-show` mode
``g``
``=``
Refresh the buffer
``?``
Display full set of key bindings
@ -296,6 +301,10 @@ tags.
``p``
Move to previous matching message
``g``
``=``
Refresh the buffer
``?``
Display full set of key bindings

View file

@ -155,6 +155,7 @@ For example, if you wanted to remove an \"inbox\" tag and add an
(define-key map "s" 'notmuch-search)
(define-key map "z" 'notmuch-tree)
(define-key map "m" 'notmuch-mua-new-mail)
(define-key map "g" 'notmuch-refresh-this-buffer)
(define-key map "=" 'notmuch-refresh-this-buffer)
(define-key map (kbd "M-=") 'notmuch-refresh-all-buffers)
(define-key map "G" 'notmuch-poll-and-refresh-this-buffer)