Open Townk opened 6 years ago
If you add :defer t
, does it defer loading as you expected?
Nope, it does not.
This is the messages after I start Emacs:
Configuring package targets...
This is TARGETS config body
Configuring package targets...done
Loading package doom-themes...
Configuring package doom-themes...done (0.137s)
Loading package doom-themes...done (0.166s)
Loading package solaire-mode...done
Loading package doom-modeline...
Configuring package doom-modeline...done
Loading package doom-modeline...done
Configuring package eldoc-eval...done
I’m setting up TARGETS
For information about GNU Emacs and the GNU system, type <f1> C-a.
Emacs ready in 1.74 seconds with 5 garbage collections.
Configuring package shackle...done
Configuring package projectile...
Loading /Users/thiagoa/.emacs.d/data/recentf-save.el (source)...done
Cleaning up the recentf list...done (0 removed)
Configuring package projectile...done
Configuring package anzu...done
Loading package evil-anzu...
Configuring package evil-anzu...done
Loading package evil-anzu...done
The message Emacs ready in 1.74 seconds with 5 garbage collections.
is the last thing on my init.el
. The rest of the loadings are the result of a deffer or the scratch buffer mode.
:straight
?M-x pp-macroexpand-last-sexp
say that the declaration expands to?
I have the following
use-package
entry on my init.el:As far as I understood by the documentation, here I should see "I'm setting up TARGETS" and "This is TARGETS config body" only when a
prog-mode
is activated.When I start emacs, my config takes me to the scratch buffer. When I'm there I check the messages and this is the content:
Notice that I have the
This is TARGETS config body
message, even though my scratch is configured to be in thefundamental-mode
with(setq-default initial-major-mode 'fundamental-mode)
.What am I missing here?