about summary refs log tree commit diff stats
path: root/.emacs.d/lisp/init-minibuffer.el
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2022-05-31 14:34:04 +0100
committerDavid Morgan <djm_uk@protonmail.com>2022-05-31 14:34:04 +0100
commitde70fb0364292f449e7dbdba9577b749fe806f70 (patch)
tree5797685b8c93b7f7fe3b5fedb68b6525993f7f9f /.emacs.d/lisp/init-minibuffer.el
parentdfe2e76d96a41bc8d5c26f78dc470486f97c4042 (diff)
downloaddotfiles-de70fb0364292f449e7dbdba9577b749fe806f70.tar.gz
Remove consult--with-orderless/consult--orderless-regexp-compiler
Diffstat (limited to '.emacs.d/lisp/init-minibuffer.el')
-rw-r--r--.emacs.d/lisp/init-minibuffer.el14
1 files changed, 1 insertions, 13 deletions
diff --git a/.emacs.d/lisp/init-minibuffer.el b/.emacs.d/lisp/init-minibuffer.el
index 7441322..d2d49b3 100644
--- a/.emacs.d/lisp/init-minibuffer.el
+++ b/.emacs.d/lisp/init-minibuffer.el
@@ -373,19 +373,7 @@ DEFS is a plist associating completion categories to commands."
     (let ((consult-buffer-sources '(consult--project-source-project-buffer
                                     consult--project-source-project-file-recentf
                                     consult--project-source-project-file-all)))
-      (consult-buffer)))
-
-  (defun consult--orderless-regexp-compiler (input type  &rest _config)
-    (setq input (orderless-pattern-compiler input))
-    (cons
-     (mapcar (lambda (r) (consult--convert-regexp r type)) input)
-     (lambda (str) (orderless--highlight input str))))
-  (defun consult--with-orderless (&rest args)
-    (minibuffer-with-setup-hook
-        (lambda ()
-          (setq-local consult--regexp-compiler #'consult--orderless-regexp-compiler))
-      (apply args)))
-  (advice-add #'consult-ripgrep :around #'consult--with-orderless))
+      (consult-buffer))))
 
 (use-package consult-flycheck)