Fix affe-regexp-compiler arguments

This commit is contained in:
Case Duckworth 2022-03-12 11:21:50 -06:00
parent 979fa11e49
commit a11c0cdeb0
1 changed files with 4 additions and 3 deletions

View File

@ -818,9 +818,10 @@ They are completed by \"M-x TAB\" only in Tramp debug buffers."
(and (executable-find "find")
(executable-find "grep"))))
(:load-after consult orderless vertico)
(setq affe-regexp-compiler (defun affe-orderless-regexp-compiler (input _type)
(setq input (orderless-pattern-compiler input))
(cons input (lambda (str) (orderless--highlight input str)))))
(setq affe-regexp-compiler
(defun affe-orderless-regexp-compiler (input &rest _)
(setq input (orderless-pattern-compiler input))
(cons input (lambda (str) (orderless--highlight input str)))))
(with-eval-after-load 'affe
(setf (alist-get 'affe-grep vertico-multiform-commands) '(buffer)
(alist-get 'affe-find vertico-multiform-commands) '(buffer))