[PATCH] emacs: tree: make jump close message pane
Tomi Ollila
tomi.ollila at iki.fi
Tue Sep 20 09:19:40 PDT 2016
On Mon, Sep 19 2016, Mark Walters <markwalters1009 at gmail.com> wrote:
> 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).
looks good plus one
> ---
>
> 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
>
> _______________________________________________
> notmuch mailing list
> notmuch at notmuchmail.org
> https://notmuchmail.org/mailman/listinfo/notmuch
More information about the notmuch
mailing list