]> git.eshelyaron.com Git - emacs.git/commit
First cut at :defer-install keyword
authorRadon Rosborough <radon.neon@gmail.com>
Wed, 8 Mar 2017 20:28:40 +0000 (12:28 -0800)
committerRadon Rosborough <radon.neon@gmail.com>
Wed, 8 Mar 2017 20:59:54 +0000 (12:59 -0800)
commitf6224b295622d5a7065a107b1323486fa9822387
treec032a0f044b9eca82939a0102e344640eefbc3d6
parent4e6115214b24b5e52fddcb53040045890d01f59a
First cut at :defer-install keyword

This new keyword, if provided along with a non-nil value, causes the
action of :ensure to be deferred until "necessary". Package
installation can be triggered by the user calling the new interactive
function `use-package-install-deferred-package', or by the feature
declared by the `use-package' form being required. This latter
behavior seems to be the simplest way to make sure that package
installation actually takes place when it needs to, but it requires
that an advice be added to `require', which may be considered overly
intrusive. (Also, it's generally considered bad practice for functions
in Emacs to put advice on other functions in Emacs.) Thus it may make
sense to add an option or function to explicitly enable this behavior,
if there does not turn out to be a better way to accomplish deferred
installation.

Documentation has not been updated to reflect :defer-install yet.
lisp/use-package/use-package.el