Re: [PATCH] emacs/tree: add notmuch-tree-quit-all
On Sat, Jun 05, 2021 at 08:35:41AM -0300, David Bremner wrote: William Casarin writes: This is a simple binding in notmuch-tree-mode that closes both the message buffer and thread buffer at the same time. This is a common action after entering a thread from search with M-Enter. Signed-off-by: William Casarin Apologies for the epic delay. Should this binding also be added to the message window? ah sure, I don't use emacs anymore so I won't have time to update these patches. sorry about that :( feel free to mark these as abandoned unless someone wants to pick it up. Cheers, Will ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org
Re: [PATCH] emacs/tree: add notmuch-tree-quit-all
David Bremner writes: > David Bremner writes: > >> William Casarin writes: >> >>> This is a simple binding in notmuch-tree-mode that closes both the >>> message buffer and thread buffer at the same time. This is a common >>> action after entering a thread from search with M-Enter. >>> >>> Signed-off-by: William Casarin >> >> Apologies for the epic delay. Should this binding also be added to the >> message window? >> > > BTW, for new keybindings please update doc/notmuch-emacs.rst > Oh! I forget devel/emacs-keybindings.org, which is probably even more important, since that is what (in theory, unless we forget it) keeps us from binding collisions. d ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org
Re: [PATCH] emacs/tree: add notmuch-tree-quit-all
David Bremner writes: > William Casarin writes: > >> This is a simple binding in notmuch-tree-mode that closes both the >> message buffer and thread buffer at the same time. This is a common >> action after entering a thread from search with M-Enter. >> >> Signed-off-by: William Casarin > > Apologies for the epic delay. Should this binding also be added to the > message window? > BTW, for new keybindings please update doc/notmuch-emacs.rst thanks, d ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org
Re: [PATCH] emacs/tree: add notmuch-tree-quit-all
William Casarin writes: > This is a simple binding in notmuch-tree-mode that closes both the > message buffer and thread buffer at the same time. This is a common > action after entering a thread from search with M-Enter. > > Signed-off-by: William Casarin Apologies for the epic delay. Should this binding also be added to the message window? d ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org
[PATCH] emacs/tree: add notmuch-tree-quit-all
This is a simple binding in notmuch-tree-mode that closes both the message buffer and thread buffer at the same time. This is a common action after entering a thread from search with M-Enter. Signed-off-by: William Casarin --- emacs/notmuch-tree.el | 5 + 1 file changed, 5 insertions(+) diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el index e5c23de2..701d12f8 100644 --- a/emacs/notmuch-tree.el +++ b/emacs/notmuch-tree.el @@ -293,6 +293,7 @@ FUNC." ;; 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 "Q" 'notmuch-tree-quit-all) (define-key map "S" 'notmuch-search-from-tree-current-query) (define-key map "U" 'notmuch-unthreaded-from-tree-current-query) (define-key map "Z" 'notmuch-tree-from-unthreaded-current-query) @@ -591,6 +592,10 @@ Shows in split pane or whole window according to value of (when (or (not (notmuch-tree-close-message-window)) kill-both) (kill-buffer (current-buffer +(defun notmuch-tree-quit-all () + (interactive) + (notmuch-tree-quit t)) + (defun notmuch-tree-close-message-window () "Close the message-window. Return t if close succeeds." (interactive) -- 2.25.1 ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch