summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.emacs.d/init-spw.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/.emacs.d/init-spw.el b/.emacs.d/init-spw.el
index 10751ceb..d8357826 100644
--- a/.emacs.d/init-spw.el
+++ b/.emacs.d/init-spw.el
@@ -148,9 +148,9 @@ add places the library might be available to `load-path'."
which should happen just once."
(let ((sym (cl-gensym)))
`(progn
- (fset ',sym (lambda ()
+ (fset ',sym (lambda (&rest args)
(remove-hook ,hook ',sym ,local)
- (funcall ,function)))
+ (apply ,function args)))
(add-hook ,hook ',sym ,depth ,local))))