Update affe config
This commit is contained in:
parent
6a8748d142
commit
1d2b9d16f5
|
@ -77,8 +77,10 @@ char."
|
||||||
:config
|
:config
|
||||||
(setq affe-grep-command (replace-regexp-in-string "\\." "-Suu ." affe-grep-command))
|
(setq affe-grep-command (replace-regexp-in-string "\\." "-Suu ." affe-grep-command))
|
||||||
;; Configure Orderless
|
;; Configure Orderless
|
||||||
(setq affe-regexp-function #'orderless-pattern-compiler
|
(defun affe-orderless-regexp-compiler (input _type _ignorecase)
|
||||||
affe-highlight-function #'orderless--highlight)
|
(setq input (orderless-pattern-compiler input))
|
||||||
|
(cons input (lambda (str) (orderless--highlight input str))))
|
||||||
|
(setq affe-regexp-compiler #'affe-orderless-regexp-compiler)
|
||||||
;; Manual preview key for `affe-grep'
|
;; Manual preview key for `affe-grep'
|
||||||
(consult-customize affe-grep :preview-key (kbd "M-."))
|
(consult-customize affe-grep :preview-key (kbd "M-."))
|
||||||
(defun my/affe-grep-symbol-at-point (&optional dir initial)
|
(defun my/affe-grep-symbol-at-point (&optional dir initial)
|
||||||
|
|
Loading…
Reference in New Issue