3 ms·
Have you heard of req-package ? a wrapper around use-package that gives helps organizing requirements, configuration and initialization of any given package. s
by agumonkey 12y ago
Have you heard of req-package ? a wrapper around use-package that gives helps organizing requirements, configuration and initialization of any given package.
see one instance https://github.com/rejeep/emacs/blob/master/init.el https://github.com/rejeep/emacs/blob/master/init.el
- codemac 12y agoI've never even used use-package.. Is this just to eliminate dependency ordering? With things like package-initialize, most every package in my system is autoloaded before any of my init.el really runs. It's a nice visual structure to look at, though, that's for sure.
- agumonkey 12y agoI think it also ensure installation on first require so you don't have to pre-install then configure. req-package adds some runtime dependency yeah, I don't use it as for now though.
- sjm 12y agoThat is one part of it, but it has a lot of other benefits too. I recently switched to using use-package to do all my package installation and configuration, and my emacs-init-time improved dramatically because use-package can set up smart deferring of loading based on commands or bindings. It's worth having a read through the repo readme: https://github.com/jwiegley/use-package https://github.com/jwiegley/use-package As an example here's my package init using use-package: https://github.com/stafu/.emacs.d/blob/master/init/init-packages.el https://github.com/stafu/.emacs.d/blob/master/init/init-pack...
- berdario 12y agoUh, just the other day I did a change to my init.el, which is apparently similar to what I'd have done with req-package https://github.com/berdario/dotfiles/compare/8e98d5569a4caaf8499c6adcc1c3acb712471dfd...27ca73bd23fc4eaf46cc803778a8116ce40d6822 https://github.com/berdario/dotfiles/compare/8e98d5569a4caaf... req-compare is cleaner, but otoh I have a different use case: the rationale for my change was to avoid errors when package installation fails (due to lack of network, for example... it might happen if I synced the init.el changes earlier without opening Emacs), while still executing all the other packages configuration/initialization steps