Skip to content

Commit 5f480ae

Browse files
committed
Fix: Pass helm-org-rifle-after-init-hook as reference
helm-org-rifle-after-init-hook was passed as string. Helm sends a warning when ~after-init-hook~ is not a symbol during functions such as ~helm-org-rifle~: Warning (emacs): Helm source ‘file.org’: after-init-hook Should be defined as a symbol Signed-off-by: Björn Bidar <[email protected]>
1 parent 5e13a0e commit 5f480ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

helm-org-rifle.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ Files are opened if necessary, and the resulting buffers are left open."
705705
(defun helm-org-rifle-get-source-for-buffer (buffer)
706706
"Return Helm source for BUFFER."
707707
(let ((source (helm-build-sync-source (buffer-name buffer)
708-
:after-init-hook helm-org-rifle-after-init-hook
708+
:after-init-hook 'helm-org-rifle-after-init-hook
709709
:candidates (lambda ()
710710
(when (s-present? helm-pattern)
711711
(helm-org-rifle--get-candidates-in-buffer (helm-attr 'buffer) helm-pattern)))

0 commit comments

Comments
 (0)