mirror of
https://github.com/doomemacs/doomemacs.git
synced 2025-12-06 02:30:33 -08:00
fix(lib): setq-hook!: remove docstrings from defuns
They aren't useful and cause byte-compiler warnings.
This commit is contained in:
parent
52dbde017a
commit
f00dd3d466
1 changed files with 1 additions and 6 deletions
|
|
@ -945,12 +945,7 @@ If N and M = 1, there's no benefit to using this macro over `remove-hook'.
|
|||
(declare (indent 1))
|
||||
(macroexp-progn
|
||||
(cl-loop for (var val hook fn) in (doom--setq-hook-fns hooks var-vals)
|
||||
collect `(defun ,fn (&rest _)
|
||||
,(format "%s = %s" var
|
||||
(let ((print-level nil)
|
||||
(print-length nil))
|
||||
(prin1-to-string val)))
|
||||
(setq-local ,var ,val))
|
||||
collect `(defun ,fn (&rest _) (setq-local ,var ,val))
|
||||
collect `(add-hook ',hook #',fn -90))))
|
||||
|
||||
(defmacro unsetq-hook! (hooks &rest vars)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue