Re: [PATCH] emacs: bind M-RET to notmuch-tree-from-search-thread

Subject: Re: [PATCH] emacs: bind M-RET to notmuch-tree-from-search-thread

Date: Thu, 21 Nov 2019 10:51:31 +0800

To: William Casarin, notmuch@notmuchmail.org

Cc:

From: Daniel Kahn Gillmor


On Wed 2019-11-13 14:57:52 -0800, William Casarin wrote:
> This is an unbound function that is quite useful. It opens a selected
> thread in notmuch-tree from the current search query.
>
> Signed-off-by: William Casarin <jb55@jb55.com>
>
> ---
>
> This is a simpler alternative to id:20191113080004.32214-1-jb55@jb55.com
>
>  emacs/notmuch.el | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/emacs/notmuch.el b/emacs/notmuch.el
> index 773d1206..0d68d123 100644
> --- a/emacs/notmuch.el
> +++ b/emacs/notmuch.el
> @@ -188,6 +188,7 @@ there will be called at other points of notmuch execution."
>      (define-key map "-" 'notmuch-search-remove-tag)
>      (define-key map "+" 'notmuch-search-add-tag)
>      (define-key map (kbd "RET") 'notmuch-search-show-thread)
> +    (define-key map (kbd "M-RET") 'notmuch-tree-from-search-thread)
>      (define-key map "Z" 'notmuch-tree-from-search-current-query)
>      map)
>    "Keymap for \"notmuch search\" buffers.")
>

LGTM.

Thanks for suggesting this.

       --dkg
signature.asc (application/pgp-signature)
_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Thread: