use-package to defer package loading.
This is useful in emacs standalone mode.
I additional run emacs in daemon mode (
emacs --daemon), then this behavior is not desired.
Is there a way to load all, in my init files defined, packages? In a way like this:
(if (daemonp) (foo-for-all-till-now-known-definitions-load-package))
My init file is distributed over multiple files and directories.
I do not want to keep an extra list of packages which I have defined using
Me doing this, is not wanted:
(if (daemonp) (require 'org) (require 'paredit) ... )
Edit: it seems, that it is not clear what should be achieved by this. So here it is more clearly:
- Packages should be loaded on demand only , when I am using
emacs(without daemon or server mode). This is already working by using keywords
- In server mode all packages should be loaded right at start of
emacs --daemon, so that there is no waiting time later. This I hope to achieve by triggering a function, which triggers all packages (the ones defined using
use-package) to be loaded.