]> git.eshelyaron.com Git - emacs.git/commit
Even when there's no :config, run any pre/post config hooks
authorJohn Lee <jjl@pobox.com>
Sat, 9 May 2020 18:01:01 +0000 (19:01 +0100)
committerJohn Lee <jjl@pobox.com>
Sat, 9 May 2020 22:46:53 +0000 (23:46 +0100)
commitf30d5761af12836844b2e3e8da11f649a31d8abf
treed9a81ac3c2befd83d38a7a7abe8a98abffe34653
parent91e5d275af4087f954ac0af75326eb269b984655
Even when there's no :config, run any pre/post config hooks

i.e., following the existing docs for use-package-inject-hooks, these hooks are
run:

use-package--foo--pre-config-hook
use-package--foo--post-config-hook

This should make config customisations more predictable (for example, spacemacs
uses these hooks extensively to allow 'layers' to be customised).

I got rid of the "special" default value for :config, because it doesn't seem to
be treated any differently than nil.

Fixes https://github.com/jwiegley/use-package/issues/785

Copyright-paperwork-exempt: yes
lisp/use-package/use-package-core.el
test/lisp/use-package/use-package-tests.el