[PATCH] emacs: tree: make jump close message pane

Mark Walters markwalters1009 at gmail.com
Mon Sep 19 02:39:49 PDT 2016


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).
---

I think this is essentially a bugfix -- I can't see why someone would
want to keep the message pane open in tree-mode when using notmuch
jump: the broad ethos of tree-mode is that the tree-view and the
message pane are really one window.

Best wishes

Mark




emacs/notmuch-tree.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el
index 5431384..851e112 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)
 
-- 
2.1.4



More information about the notmuch mailing list