Add note to def-package-hook! to use it only in init.el files

This commit is contained in:
Henrik Lissner 2018-03-12 13:12:31 -04:00
parent 23fda88b2f
commit a8906cc077
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -399,6 +399,8 @@ MODULES is an malformed plist of modules to load."
(defmacro def-package-hook! (package when &rest body)
"Reconfigures a package's `def-package!' block.
Only use this macro in a module's init.el file.
Under the hood, this uses use-package's `use-package-inject-hooks'.
PACKAGE is a symbol; the package's name.