unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Kan-Ru Chen <kanru@kanru.info>
To: notmuch@notmuchmail.org
Subject: [PATCH 2/2] emacs: notmuch-hello: Add "n" and "p" to mod map
Date: Tue, 27 Jul 2010 09:48:45 +0800	[thread overview]
Message-ID: <1280195325-9066-3-git-send-email-kanru@kanru.info> (raw)
In-Reply-To: <1280195325-9066-1-git-send-email-kanru@kanru.info>

Bind "n" to widget-forward and "p" to widget-backward to unify the
interface since other notmuch major mode also accept "n" and "p" to
navigation.
---
 emacs/notmuch-hello.el |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
index 6ef03bb..7def241 100644
--- a/emacs/notmuch-hello.el
+++ b/emacs/notmuch-hello.el
@@ -294,6 +294,8 @@ should be. Returns a cons cell `(tags-per-line width)'."
     (define-key map "=" 'notmuch-hello-update)
     (define-key map "G" 'notmuch-hello-poll-and-update)
     (define-key map (kbd "<C-tab>") 'widget-backward)
+    (define-key map "n" 'widget-forward)
+    (define-key map "p" 'widget-backward)
     (define-key map "m" 'notmuch-mua-mail)
     (define-key map "s" 'notmuch-hello-goto-search)
     map)
-- 
1.7.1

  parent reply	other threads:[~2010-07-27  2:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-27  1:48 [PATCH 0/2] Usability improvements to notmuch-hello Kan-Ru Chen
2010-07-27  1:48 ` [PATCH 1/2] emacs: notmuch-hello: Avoid going to end-of-line in search box Kan-Ru Chen
2011-04-16 13:07   ` Pieter Praet
2010-07-27  1:48 ` Kan-Ru Chen [this message]
2011-04-16 13:26   ` [PATCH 2/2] emacs: notmuch-hello: Add "n" and "p" to mod map Pieter Praet
2011-04-18  7:36     ` Xavier Maillard
2011-04-18  9:55       ` Pieter Praet

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=1280195325-9066-3-git-send-email-kanru@kanru.info \
    --to=kanru@kanru.info \
    --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).