diff options
author | David Morgan <djm_uk@protonmail.com> | 2022-05-31 14:34:04 +0100 |
---|---|---|
committer | David Morgan <djm_uk@protonmail.com> | 2022-05-31 14:34:04 +0100 |
commit | de70fb0364292f449e7dbdba9577b749fe806f70 (patch) | |
tree | 5797685b8c93b7f7fe3b5fedb68b6525993f7f9f /.emacs.d/lisp/init-minibuffer.el | |
parent | dfe2e76d96a41bc8d5c26f78dc470486f97c4042 (diff) | |
download | dotfiles-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.el | 14 |
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) |