summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Walters <markwalters1009@gmail.com>2016-09-19 10:39:49 +0100
committerDavid Bremner <david@tethera.net>2016-09-24 10:08:24 -0300
commit7b2d7d65126b11ce08079b7cf235e1073fb1c22b (patch)
tree94c348eabb838d3da1bfd115aa29226888941975
parent5292e9b1ae60bbb66466f126463b3d6f0bf6a3b6 (diff)
emacs: tree: make jump close message pane
j is in the global notmuch keymap bound to notmuch jump. In tree-mode it makes sense to close the message pane first (otherwise the new search runs in the small top pane of tree-mode).
-rw-r--r--emacs/notmuch-tree.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el
index d864e6dd..6e5797e9 100644
--- a/emacs/notmuch-tree.el
+++ b/emacs/notmuch-tree.el
@@ -241,6 +241,8 @@ FUNC."
(define-key map [remap notmuch-search] 'notmuch-tree-to-search)
;; Override because we want to close message pane first.
(define-key map [remap notmuch-mua-new-mail] (notmuch-tree-close-message-pane-and #'notmuch-mua-new-mail))
+ ;; Override because we want to close message pane first.
+ (define-key map [remap notmuch-jump-search] (notmuch-tree-close-message-pane-and #'notmuch-jump-search))
(define-key map "S" 'notmuch-search-from-tree-current-query)