branch: externals/setup
commit e8a5ac700d418efab2568cdcdfaea4bc9e90c03e
Author: Philip K <phil...@posteo.net>
Commit: Philip K <phil...@posteo.net>

    Rename :hook argument to function
---
 setup.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/setup.el b/setup.el
index 9973212..f12a648 100644
--- a/setup.el
+++ b/setup.el
@@ -314,8 +314,8 @@ If not given, it is assumed nothing is evaluated."
   :repeatable 2)
 
 (setup-define :hook
-  (lambda (hook)
-    `(add-hook setup-hook #',hook))
+  (lambda (function)
+    `(add-hook setup-hook #',function))
   :documentation "Add FUNCTION to current hook."
   :debug '(form [&or [symbolp sexp] form])
   :repeatable 1)

Reply via email to