[Top][All Lists]

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


From: Edward Knyshov
Subject: req-package
Date: Tue, 11 Aug 2015 07:10:11 +0000

Hello everyone.
My name is Edward.

I was asked about explanation of how does req-package work and which
problems does it solve. The question appeared in this list's discussion on
req-package moving to core package proposal.

So, req-package solves one single problem - make order of package
configurations in your init.el right without continuous reordering your
code while still providing ambrosian use-package goodness. It makes your
.emacs.d code more strict, modular and error prone. You can look here, how
I divided my code in separate modules and how simple does it looks .

Remember, how often you tackled into problem, when you need to require one
package, do some configuration, then the same with second and so on.
Sometimes it becomes too complex. Especially in cases when one package have
more than one dependency. You can draw a graph of dependencies in your
configuration, and, I'm sure, it's complex. req-package creates this graph
for you and makes a correct traverse on it. The syntax is almost the same
as with use-package, but it provides a few additional keywords:
1) :require - a parameter to specify dependencies
2) :loader - an optional parameter to specify where to get package (el-get,
elpa, etc.)

Interesting thing is that packages are installed automatically once
req-package-finish function is executed. So there is no need for things
like cask or save-packages. You just write a configuration with packages
you need and they will be there. req-package will try to use elpa, el-get
or any package system provided by you to find and install your packages.

That's it. I'm not trying to push my package to core. I'm just answering a
question here.


reply via email to

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