unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: David Bremner <david@tethera.net>
To: "notmuch@notmuchmail.org" <notmuch@notmuchmail.org>
Subject: Re: Defer notmuch.el setup
Date: Fri, 03 Jun 2022 09:57:40 -0300	[thread overview]
Message-ID: <877d5xyke3.fsf@tethera.net> (raw)
In-Reply-To: <87h752yaws.fsf@tethera.net>

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.

      parent reply	other threads:[~2022-06-03 12:57 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
2022-06-03 10:14   ` Dan Čermák
2022-06-03 12:00     ` David Bremner
2022-06-03 12:57   ` David Bremner [this message]

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=877d5xyke3.fsf@tethera.net \
    --to=david@tethera.net \
    --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).