help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Question] use-package's :init or :config for enabling modes


From: tomas
Subject: Re: [Question] use-package's :init or :config for enabling modes
Date: Mon, 20 May 2024 07:37:42 +0200

On Sun, May 19, 2024 at 09:15:07PM +0200, Ergus wrote:
> Hi:
> 
> I am not specialist here, but they exist because the :init is ALWAYS
> executed while loading the init.el, but the :config is executed AFTER
> loading the package (using eval-after-load).

If I understand correctly, :init happens (possibly) before the package
is loaded. So assuming it's already there seems risky.

Unless "just invoking" the mode (as OP did in the :init) manages to
load the package, because, e.g. it is autoloaded). Then all is well,
but the explicit load doesn't do anything, because the package was
(auto-) loaded in the :init already.

But I may be wrong :-)

Cheers
-- 
t

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]