From: Nelson Elhage <nelhage@ksplice.com>
Date: Tue, 11 May 2010 15:38:44 +0000 (-0400)
Subject: emacs: Bind <backtab> (shift-TAB) to notmuch-show-previous-button
X-Git-Tag: 0.4~126
X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=35343710a2a64e80974aaf4d4222feb43474113a;p=notmuch-old

emacs: Bind <backtab> (shift-TAB) to notmuch-show-previous-button

Shift-TAB is standard "opposite" of TAB -- in GUI interfaces they
typically cycle through input elements in opposite orders -- so it
makes sense to behave the same way.

Signed-off-by: Nelson Elhage <nelhage@ksplice.com>
---

diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index 4b1baf38..b0815a02 100644
--- a/emacs/notmuch-show.el
+++ b/emacs/notmuch-show.el
@@ -548,6 +548,7 @@ function is used. "
 	(define-key map "?" 'notmuch-help)
 	(define-key map "q" 'kill-this-buffer)
 	(define-key map (kbd "M-TAB") 'notmuch-show-previous-button)
+	(define-key map (kbd "<backtab>") 'notmuch-show-previous-button)
 	(define-key map (kbd "TAB") 'notmuch-show-next-button)
 	(define-key map "s" 'notmuch-search)
 	(define-key map "m" 'notmuch-mua-mail)