From: David Bremner <david@tethera.net>
To: "artur.brzozowski" <artur.brzozowski@protonmail.com>,
"notmuch@notmuchmail.org" <notmuch@notmuchmail.org>
Subject: Re: Defer notmuch.el setup
Date: Thu, 02 Jun 2022 19:10:11 -0300 [thread overview]
Message-ID: <87h752yaws.fsf@tethera.net> (raw)
In-Reply-To: <Qx4qAepefLWYLVQFzkDcxEZVMJU5gWeugmkV3-DIbcNvFaocVDYQs0kvTvFhV_YaFSxDEVMAvST5smw9UAIAVlSa5xgj49MQGk81okql_4A=@protonmail.com>
"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
next prev parent reply other threads:[~2022-06-02 22:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-02 19:01 Defer notmuch.el setup artur.brzozowski
2022-06-02 22:10 ` David Bremner [this message]
2022-06-03 10:14 ` Dan Čermák
2022-06-03 12:00 ` David Bremner
2022-06-03 12:57 ` David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h752yaws.fsf@tethera.net \
--to=david@tethera.net \
--cc=artur.brzozowski@protonmail.com \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).