Re: Defer notmuch.el setup

Subject: Re: Defer notmuch.el setup

Date: Thu, 02 Jun 2022 19:10:11 -0300

To: artur.brzozowski, notmuch@notmuchmail.org

Cc:

From: David Bremner


"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.

2) You can achieve the same deferral of settings by adding your settings
   to ~/.emacs.d/notmuch-config.el
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: