Browse Source

Add ivy format config

master
10sr 4 years ago
parent
commit
b04b7e1789
Signed by: 10sr GPG Key ID: C384BB17CBB19347
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      emacs.el

+ 3
- 1
emacs.el View File

@@ -2578,9 +2578,11 @@ Any output will be written to current buffer."


;; ivy ;; ivy


(defvar ivy-re-builders-alist)
;; (defvar ivy-re-builders-alist)
(set-variable 'ivy-re-builders-alist (set-variable 'ivy-re-builders-alist
'((t . my--ivy-regex-fuzzy-ignore-order))) '((t . my--ivy-regex-fuzzy-ignore-order)))
(set-variable 'ivy-format-functions-alist
'((t . ivy-format-function-arrow)))


(defun my--ivy-regex-fuzzy-ignore-order (str) (defun my--ivy-regex-fuzzy-ignore-order (str)
"Re-build regex from STR for ignore-order fuzzy match." "Re-build regex from STR for ignore-order fuzzy match."


Loading…
Cancel
Save