Replace default ivy and ido with selectrum and ctrlf
This commit is contained in:
parent
9ea6627587
commit
0081f81c78
|
@ -13,7 +13,7 @@
|
|||
;; ABILITIES
|
||||
;; =========
|
||||
;; Disable abilities which you don't want.
|
||||
(disable 'rbenv 'helm 'spell 'linum 'tabbar
|
||||
(disable 'rbenv 'helm 'spell 'linum 'tabbar 'ido 'ivy
|
||||
'smart-mode-line 'desktop-mode 'jedi
|
||||
'dired+ 'guru 'emoji 'elpy 'github
|
||||
'versioned-backup)
|
||||
|
|
|
@ -50,6 +50,11 @@
|
|||
(depends-on 'ivy)
|
||||
(depends-on 'counsel))
|
||||
|
||||
(with-ability selectrum
|
||||
(depends-on 'selectrum)
|
||||
(depends-on 'selectrum-prescient)
|
||||
(depends-on 'ctrlf))
|
||||
|
||||
(with-ability ido
|
||||
(depends-on 'ido)
|
||||
(depends-on 'ido-completing-read+)
|
||||
|
|
|
@ -300,6 +300,17 @@
|
|||
(setq ido-enable-flex-matching t)
|
||||
(ido-vertical-mode 1))
|
||||
|
||||
(ability selectrum ()
|
||||
"Selectrum is a better replacement for IDO and Ivy"
|
||||
(require 'selectrum)
|
||||
(require 'selectrum-prescient)
|
||||
(require 'ctrlf)
|
||||
|
||||
(selectrum-mode +1)
|
||||
(selectrum-prescient-mode +1)
|
||||
(prescient-persist-mode +1)
|
||||
(ctrlf-mode +1)
|
||||
(setq prescient-filter-method '(literal fuzzy regexp initialism)))
|
||||
|
||||
(ability ivy ()
|
||||
"Completion using ivy."
|
||||
|
|
Loading…
Reference in New Issue