Expand docstring for setq!
This commit is contained in:
parent
3ebdc513f8
commit
d1442a03bf
1 changed files with 5 additions and 1 deletions
|
@ -134,7 +134,11 @@ aliases."
|
|||
(directory-file-name (file-name-directory path))))
|
||||
|
||||
(defmacro setq! (&rest settings)
|
||||
"A stripped-down `customize-set-variable' with the syntax of `setq'."
|
||||
"A stripped-down `customize-set-variable' with the syntax of `setq'.
|
||||
|
||||
Use this instead of `setq' when you know a variable has a custom setter (a :set
|
||||
property in its `defcustom' declaration). This trigger setters. `setq' does
|
||||
not."
|
||||
(macroexp-progn
|
||||
(cl-loop for (var val) on settings by 'cddr
|
||||
collect `(funcall (or (get ',var 'custom-set) #'set)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue