From e4b65a6ea63c4043167c7ded7a8fe688d7780335 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sun, 20 Mar 2022 00:51:20 +0800 Subject: Use orderless-flex (emacs) --- .emacs.d/lisp/init-minibuffer.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to '.emacs.d/lisp/init-minibuffer.el') diff --git a/.emacs.d/lisp/init-minibuffer.el b/.emacs.d/lisp/init-minibuffer.el index 94dec41..bf38675 100644 --- a/.emacs.d/lisp/init-minibuffer.el +++ b/.emacs.d/lisp/init-minibuffer.el @@ -10,7 +10,6 @@ (setq completion-ignore-case t read-file-name-completion-ignore-case t read-buffer-completion-ignore-case t) - (with-eval-after-load 'vertico (define-key vertico-map (kbd "C-c j") 'vertico-quick-jump) (define-key vertico-map (kbd "C-c C-j") 'vertico-quick-jump) @@ -20,7 +19,7 @@ (lambda () (interactive) (vertico-previous (/ vertico-count 2))))) (when (gx/maybe-require-package 'orderless) - (setq orderless-matching-styles '(orderless-literal orderless-regexp)) + (setq orderless-matching-styles '(orderless-literal orderless-regexp orderless-flex)) (defun gx/orderless-without-if-bang (pattern _index _total) (cond -- cgit v1.2.3