Re: Emacs front end mail-user-agent documentation and loading

Subject: Re: Emacs front end mail-user-agent documentation and loading

Date: Sat, 2 Sep 2023 09:45:30 +0200

To: David Bremner

Cc: notmuch@notmuchmail.org

From: Christoph


> The "emacs tips" you refer to is a wiki [1], so feel free to update it.

I didn't notice that, thanks for pointing that out, I will add
something to it.

> I'm not familiar enough with use-package to comment on that.  I agree
> that notmuch could be better about autoloading things, but since I
> always load notmuch and rarely restart emacs, it hasn't been a priority
> for me personally.

`use-package' uses `eval-after-load' and `autoload' for lazy loading
packages.  It might be enough to have the `notmuch-user-agent' in its
own file, providing it as a separate feature?

That way, the `notmuch-user-agent' can be required without loading all
of notmuch and then autoloads could load the rest of notmuch when
needed?  Didn't test that, just a thought.  Maybe this doesn't work
because of the way the user-agent is used.

I will maybe play around with it when I find some time.

-- Christoph
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: