From 21055c8bf7af6d25024c3222bbb89e5555ef99a9 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Wed, 23 Oct 2019 16:12:17 +0900 Subject: [PATCH] Update re-builder alist to ignore spaces --- emacs.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/emacs.el b/emacs.el index 17fe81b..be7418d 100644 --- a/emacs.el +++ b/emacs.el @@ -2358,7 +2358,11 @@ Any output will be written to current buffer." (when (require 'counsel nil t) (defvar ivy-re-builders-alist) (set-variable 'ivy-re-builders-alist - '((t . ivy--regex-fuzzy))) + '((t . (lambda (s) + ;; Ignore whitespace + (ivy--regex-fuzzy (replace-regexp-in-string (rx space) + "" + s)))))) (define-key esc-map "x" 'counsel-M-x) ;; (counsel-mode 1) ;; counsel-fzf executes fzf -f QUERY for each input