Clarify argument in after!'s docstring
after! takes a package, not a mode.
This commit is contained in:
parent
70ac4c0cf5
commit
af7a2d16c4
1 changed files with 4 additions and 8 deletions
|
@ -498,7 +498,7 @@ CATEGORY and MODULE can be omitted When this macro is used from inside a module
|
||||||
t))
|
t))
|
||||||
|
|
||||||
(defmacro after! (targets &rest body)
|
(defmacro after! (targets &rest body)
|
||||||
"Evaluate BODY after TARGETS have loaded.
|
"Evaluate BODY after TARGETS (packages) have loaded.
|
||||||
|
|
||||||
This is a wrapper around `with-eval-after-load' that:
|
This is a wrapper around `with-eval-after-load' that:
|
||||||
|
|
||||||
|
@ -506,19 +506,15 @@ This is a wrapper around `with-eval-after-load' that:
|
||||||
2. No-ops for TARGETS that are disabled by the user (via `package!')
|
2. No-ops for TARGETS that are disabled by the user (via `package!')
|
||||||
3. Supports compound TARGETS statements (see below)
|
3. Supports compound TARGETS statements (see below)
|
||||||
|
|
||||||
TARGETS can either be:
|
TARGETS is a list of packages in one of these formats:
|
||||||
|
|
||||||
- An unquoted package symbol (the name of a package)
|
- An unquoted package symbol (the name of a package)
|
||||||
|
|
||||||
(after! helm BODY...)
|
(after! helm BODY...)
|
||||||
|
|
||||||
- An unquoted list of package symbols (i.e. BODY is evaluated once both magit
|
- An unquoted list of package symbols (i.e. BODY is evaluated once both magit
|
||||||
and git-gutter have loaded)
|
and git-gutter have loaded)
|
||||||
|
|
||||||
(after! (magit git-gutter) BODY...)
|
(after! (magit git-gutter) BODY...)
|
||||||
|
- An unquoted, nested list of compound package lists, using :or/:any and/or
|
||||||
- An unquoted, nested list of compound package lists, using :or/:any and/or :and/:all
|
:and/:all
|
||||||
|
|
||||||
(after! (:or package-a package-b ...) BODY...)
|
(after! (:or package-a package-b ...) BODY...)
|
||||||
(after! (:and package-a package-b ...) BODY...)
|
(after! (:and package-a package-b ...) BODY...)
|
||||||
(after! (:and package-a (:or package-b package-c) ...) BODY...)
|
(after! (:and package-a (:or package-b package-c) ...) BODY...)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue