summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--init.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/init.el b/init.el index 8feab77..9aa18a4 100644 --- a/init.el +++ b/init.el
@@ -911,6 +911,15 @@ if ripgrep is installed, otherwise `consult-grep'."
911 (cond ((executable-find "locate") (call-interactively #'consult-locate)) 911 (cond ((executable-find "locate") (call-interactively #'consult-locate))
912 (t (call-interactively #'consult-find)))) 912 (t (call-interactively #'consult-find))))
913 913
914 ;; Orderless Regexp Compiler! -- from Consult Wiki
915 (defun consult--orderless-regexp-compiler (input type)
916 (setq input (orderless-pattern-compiler input))
917 (cons
918 (mapcar (lambda (r) (consult--convert-regexp r type)) input)
919 (lambda (str) (orderless--highlight input str))))
920
921 (setq consult--regexp-compiler #'consult--orderless-regexp-compiler)
922
914 ;; Bindings 923 ;; Bindings
915 (:global 924 (:global
916 ;; C-c bindings (`mode-specific-map') 925 ;; C-c bindings (`mode-specific-map')