aboutsummaryrefslogtreecommitdiffhomepage
path: root/contrib
diff options
context:
space:
mode:
authorGravatar Mark Walters <markwalters1009@gmail.com>2013-08-22 18:10:24 +0100
committerGravatar David Bremner <bremner@debian.org>2013-08-24 11:18:48 +0200
commit8349173e96e681248322cadb2185eb4e1a22e6a8 (patch)
tree253fabfe9e938210d3c74a254318e9e752fbf77b /contrib
parentd3ef0f74cf27cedae595c3d6556792e117d605f8 (diff)
contrib: pick: make help close the message pane first
Previously pressing "?" for help when the message pane was open meant the help window was very small. Close the message pane before displaying help.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/notmuch-pick/notmuch-pick.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/notmuch-pick/notmuch-pick.el b/contrib/notmuch-pick/notmuch-pick.el
index 6d73269e..344609f8 100644
--- a/contrib/notmuch-pick/notmuch-pick.el
+++ b/contrib/notmuch-pick/notmuch-pick.el
@@ -235,10 +235,12 @@ FUNC."
(define-key map (kbd "TAB") (notmuch-pick-to-message-pane #'notmuch-show-next-button))
(define-key map "e" (notmuch-pick-to-message-pane #'notmuch-pick-button-activate))
+ ;; bindings from show (or elsewhere) but we close the message pane first.
+ (define-key map "?" (notmuch-pick-close-message-pane-and #'notmuch-help))
+
;; The main pick bindings
(define-key map "q" 'notmuch-pick-quit)
(define-key map "x" 'notmuch-pick-quit)
- (define-key map "?" 'notmuch-help)
(define-key map "a" 'notmuch-pick-archive-message-then-next)
(define-key map "=" 'notmuch-pick-refresh-view)
(define-key map "s" 'notmuch-pick-to-search)