From: Matt Armstrong <marmstrong@google.com>
To: notmuch@notmuchmail.org
Subject: [PATCH 1/1] Emacs: bind "g" to 'notuch-refresh-this-buffer
Date: Sat, 16 Feb 2019 12:27:30 -0800 [thread overview]
Message-ID: <qf5y36f4gy5.fsf@naz.kir.corp.google.com> (raw)
Using "g" for refresh operations is a pretty common Emacs convention,
codified by `special-mode' in simple.el.
---
doc/notmuch-emacs.rst | 9 +++++++++
emacs/notmuch-lib.el | 1 +
2 files changed, 10 insertions(+)
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
``<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
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)
--
2.21.0.rc0.258.g878e2cd30e-goog
next reply other threads:[~2019-02-16 20:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-16 20:27 Matt Armstrong [this message]
2019-02-21 11:20 ` [PATCH 1/1] Emacs: bind "g" to 'notuch-refresh-this-buffer David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=qf5y36f4gy5.fsf@naz.kir.corp.google.com \
--to=marmstrong@google.com \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).