Explorar el Código

Update ivy format function

master
10sr hace 4 años
padre
commit
f8c1fa72fe
Firmado por: 10sr ID de clave GPG: C384BB17CBB19347
Se han modificado 1 ficheros con 11 adiciones y 1 borrados
  1. +11
    -1
      emacs.el

+ 11
- 1
emacs.el Ver fichero

@@ -2582,8 +2582,18 @@ Any output will be written to current buffer."
;; (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)))
(set-variable 'ivy-format-functions-alist
'((t . ivy-format-function-arrow)))
'((t . (lambda (cands) (ivy--format-function-generic
(lambda (str)
(concat "-> "
(ivy--add-face str 'ivy-current-match)
))
(lambda (str)
(concat "| " str))
cands
"\n")))))

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


Cargando…
Cancelar
Guardar