From: Matt Armstrong Date: Sat, 16 Feb 2019 20:27:30 +0000 (-0800) Subject: Emacs: bind "g" to 'notuch-refresh-this-buffer X-Git-Tag: archive/debian/0.29_rc0-1~136 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=adde6dfaef9348a6ea5e1fe3651e85dacff775b7 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. --- diff --git a/doc/notmuch-emacs.rst b/doc/notmuch-emacs.rst index 2e85b8a5..0df46df9 100644 --- a/doc/notmuch-emacs.rst +++ b/doc/notmuch-emacs.rst @@ -62,6 +62,7 @@ notmuch-hello key bindings ```` 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 ```` 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 diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el index 25d83fd6..8cf7261e 100644 --- a/emacs/notmuch-lib.el +++ b/emacs/notmuch-lib.el @@ -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)