Re: Defer notmuch.el setup

Subject: Re: Defer notmuch.el setup

Date: Fri, 03 Jun 2022 09:57:40 -0300

To: notmuch@notmuchmail.org

Cc:

From: David Bremner


David Bremner <david@tethera.net> writes:

> "artur.brzozowski" <artur.brzozowski@protonmail.com> writes:
>
>> I am trying out notmuch and notmuch.el as an Emacs user. When adding some
>> funcitonality to Emacs, I usually wrap its setup inside a (with-eval-after-load)
>> block to defer it for when it is needed. I noticed that in case of notmuch.el,
>> some settings are not properly set if included in in the macro - here I mean a
>> quite important option 'notmuch-search-oldest-first' which I set to nil. When
>> included inside the (with-eval-after-load) body it remains unchanged. Of course
>> italso makes me wonder if any other variable acts in this way and needs to be
>> set at Emacs runtime.
>
> I'm not sure about with-eval-after-load, but
>
> 1) you need to use setq-default for this variable (or use customize),
>    because it is buffer-local.

Artur reported off list that using setq-default was the fix.
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: