After adding the following to my init.el
(setq projectile-completion-system 'grizzl)
When I try to run C-c p f or projectile-find-file, I get the following error
Symbol's function definition is void: exitfun
And the code of the function where the error occurs
(defun grizzl-completing-read (prompt index)
"Performs a completing-read in the minibuffer using INDEX to fuzzy search.
Each key pressed in the minibuffer filters down the list of matches."
(minibuffer-with-setup-hook
(lambda ()
(setq *grizzl-current-result* nil)
(setq *grizzl-current-selection* 0)
(grizzl-mode 1)
(lexical-let*
((hookfun (lambda ()
(setq *grizzl-current-result*
(grizzl-search (minibuffer-contents)
index
*grizzl-current-result*))
(grizzl-display-result index prompt)))
(exitfun (lambda ()
(grizzl-mode -1)
(remove-hook 'post-command-hook hookfun t))))
(add-hook 'minibuffer-exit-hook exitfun nil t)
(add-hook 'post-command-hook hookfun nil t)))
(read-from-minibuffer ">>> ")
(grizzl-selected-result index)))
Unfortunately I'm not that good with Emacs Lisp to be able to figure out why this is happening :(
After adding the following to my
init.elWhen I try to run
C-c p forprojectile-find-file, I get the following errorHere's a link to the whole stacktrace
And the code of the function where the error occurs
Unfortunately I'm not that good with Emacs Lisp to be able to figure out why this is happening :(