* Load all deferred packages (use-package)
@ 2024-09-26 16:41 John Haman
2024-09-26 23:09 ` Stefan Monnier via Users list for the GNU Emacs text editor
0 siblings, 1 reply; 3+ messages in thread
From: John Haman @ 2024-09-26 16:41 UTC (permalink / raw)
To: help-gnu-emacs
I use use-package to organize my configuration, and a fair number of packages are deferred from loading. The keyword ":defer N" rather than ":defer t" causes the package to load after N seconds, but it cannot be implied like ":defer t" (I created an issue about that, https://github.com/jwiegley/use-package/issues/1080)
Does anyone have a snippet that I could run on a timer, say, after 2 mins of idle, that would cause all my deferred packages to be loaded into my emacs session?
Thanks,
--
John T. Haman
mail@johnhaman.org
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Load all deferred packages (use-package)
2024-09-26 16:41 John Haman
@ 2024-09-26 23:09 ` Stefan Monnier via Users list for the GNU Emacs text editor
0 siblings, 0 replies; 3+ messages in thread
From: Stefan Monnier via Users list for the GNU Emacs text editor @ 2024-09-26 23:09 UTC (permalink / raw)
To: help-gnu-emacs
> Does anyone have a snippet that I could run on a timer, say, after
> 2 mins of idle, that would cause all my deferred packages to be loaded
> into my Emacs session?
Which packages would you load like that and why?
Usually just loading a package does nothing useful, but that's
presumably not the case here, so I wonder what kind of effect you're
really thinking of when you say "load".
Stefan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Load all deferred packages (use-package)
@ 2024-09-28 14:51 mail
0 siblings, 0 replies; 3+ messages in thread
From: mail @ 2024-09-28 14:51 UTC (permalink / raw)
To: monnier; +Cc: help-gnu-emacs
Which packages would you load like that and why?
Usually just loading a package does nothing useful, but that's
presumably not the case here, so I wonder what kind of effect you're
really thinking of when you say "load".
Hi, I missed your reply because I don't subscribe, so please keep me in the
TO line.
I would like to load (maybe require is the right term) all of my packages
into my emacs session after a few mins of idle. My rationale is that I would
prefer to not wait for org or ESS to load when I need them, but I'd also
like to not wait at startup either. Since I posted, I found a snippet on
github that seems to do what I would like.
```
(map-do (lambda (key _) (require key)) use-package-statistics)
```
--
Dr. John Haman
Maryland, USA
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-09-28 14:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-28 14:51 Load all deferred packages (use-package) mail
-- strict thread matches above, loose matches on Subject: below --
2024-09-26 16:41 John Haman
2024-09-26 23:09 ` Stefan Monnier via Users list for the GNU Emacs text editor
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.