emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/setup 7896b50: Use setup-ensure-function in :local-hook


From: ELPA Syncer
Subject: [elpa] externals/setup 7896b50: Use setup-ensure-function in :local-hook
Date: Wed, 1 Sep 2021 07:57:19 -0400 (EDT)

branch: externals/setup
commit 7896b509c5975d7875cb61d3b05b0e30b12b034d
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>

    Use setup-ensure-function in :local-hook
---
 setup.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.el b/setup.el
index 03266cb..cdca915 100644
--- a/setup.el
+++ b/setup.el
@@ -522,7 +522,7 @@ supported:
   (lambda (hook function)
     `(add-hook ',(setup-get 'hook)
                (lambda ()
-                 (add-hook ',hook #',function nil t))))
+                 (add-hook ',hook ,(setup-ensure-function function) nil t))))
   :documentation "Add FUNCTION to HOOK only in buffers of the current mode."
   :debug '(symbolp sexp)
   :repeatable t)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]