From 8ebc22d77aa2309429ce033f9f6baab2eb13e101 Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Sun, 6 Oct 2019 23:10:59 +0200 Subject: [PATCH] enable simple fuzzy matching in ivy --- emacs/.emacs.d/emacs.org | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/emacs/.emacs.d/emacs.org b/emacs/.emacs.d/emacs.org index 482f0fa..7490860 100644 --- a/emacs/.emacs.d/emacs.org +++ b/emacs/.emacs.d/emacs.org @@ -138,8 +138,6 @@ (counsel-grep . ivy--regex-plus) (swiper . ivy--regex-plus) (swiper-isearch . ivy--regex-plus) - ; Ignore order for non-fuzzy searches by default - ;(t . ivy--regex-ignore-order) )) :config (setq ivy-height 15 @@ -157,7 +155,9 @@ ; don't quit minibuffer on delete-error ivy-on-del-error-function nil ; enable ability to select prompt (alternative to `ivy-immediate-done') - ivy-use-selectable-prompt t) + ivy-use-selectable-prompt t + ; use fuzzy matching + ivy-re-builders-alist '((t . ivy--regex-fuzzy))) (ivy-mode +1)) (use-package ivy-rich @@ -166,13 +166,6 @@ :config (ivy-rich-mode +1)) - ;(use-package flx - ; :defer t ; is loaded by ivy - ; :init - ; (setf (alist-get 't ivy-re-builders-alist) #'ivy--regex-fuzzy) - ; (setq ivy-initial-inputs-alist nil - ; ivy-flx-limit 10000)) - (use-package counsel :ensure t)