Re: notmuch-hello-mode-map removed

Subject: Re: notmuch-hello-mode-map removed

Date: Sun, 17 Jan 2021 21:43:39 +0100

To: Jon Fineman, notmuch@notmuchmail.org

Cc:

From: Tomas Nordin


Jon Fineman <jon@fineman.me> writes:

> I just upgraded my notmuch library and noticed that per this thread the
> function notmuch-hello-mode-map was removed.
> https://nmbug.notmuchmail.org/nmweb/show/20200726165818.400-14-jonas%40bernoul.li
>
> I had been following this guide to map keys to various notmuch
> functions.
> https://notmuchmail.org/emacstips/#index5h2
>
> For example I have this mapping:
> (define-key notmuch-hello-mode-map "i"
>   (lambda ()
>     (interactive)
>     (notmuch-hello-search "folder:INBOX not tag:deleted")))
>
> Still being very new to emacs and elisp I am having trouble coming up
> with how to replace notmuch-hello-mode-map with another fuction.

I don't think you have to. notmuch-hello-mode-map is a mode-map variable
and your 'define-key' is using it as such. I have a lot of those too and
hope it will continue to work. I think it will remain a mode-map also
after the change communicated in that thread.
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: