瀏覽代碼

Add ivy format config

master
10sr 4 年之前
父節點
當前提交
b04b7e1789
簽署人: 10sr GPG 金鑰 ID: C384BB17CBB19347
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. +3
    -1
      emacs.el

+ 3
- 1
emacs.el 查看文件

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

;; ivy

(defvar ivy-re-builders-alist)
;; (defvar ivy-re-builders-alist)
(set-variable 'ivy-re-builders-alist
'((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)
"Re-build regex from STR for ignore-order fuzzy match."


Loading…
取消
儲存