Re: [PATCH v3 7/7] emacs/tree: add x/X bindings

Subject: Re: [PATCH v3 7/7] emacs/tree: add x/X bindings

Date: Mon, 30 Dec 2019 12:25:34 +0000

To: William Casarin, notmuch@notmuchmail.org

Cc:

From: David Edmondson


On Saturday, 2019-12-28 at 10:01:24 -05, William Casarin wrote:

> Add x and X binds to notmuch-tree for functionally that we have in
> notmuch-show.
>
> The notmuch-tree-quit binding is somewhat redundant, since it is
> handled by notmuch-bury-or-kill-this-buffer which is bound to q.
>
> Signed-off-by: William Casarin <jb55@jb55.com>

Reviewed-by: David Edmondson <dme@dme.org>

> ---
>  emacs/notmuch-tree.el | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el
> index e9c0433c..987cc81e 100644
> --- a/emacs/notmuch-tree.el
> +++ b/emacs/notmuch-tree.el
> @@ -277,7 +277,8 @@ FUNC."
>      ;; The main tree view bindings
>      (define-key map (kbd "RET") 'notmuch-tree-show-message)
>      (define-key map [mouse-1] 'notmuch-tree-show-message)
> -    (define-key map "x" 'notmuch-tree-quit)
> +    (define-key map "x" 'notmuch-tree-archive-message-then-next-or-exit)
> +    (define-key map "X" 'notmuch-tree-archive-thread-then-exit)
>      (define-key map "A" 'notmuch-tree-archive-thread)
>      (define-key map "a" 'notmuch-tree-archive-message-then-next)
>      (define-key map "z" 'notmuch-tree-to-tree)
> -- 
> 2.24.0
>
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> https://notmuchmail.org/mailman/listinfo/notmuch

dme.
-- 
You know your green from your red.
_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Thread: