Clarify argument in after!'s docstring

after! takes a package, not a mode.
This commit is contained in:
Henrik Lissner 2019-07-06 21:37:45 +02:00
parent 70ac4c0cf5
commit af7a2d16c4
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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...)