Remove ido, replace with ivy and counsel
This commit is contained in:
parent
f485cf9f34
commit
291b309522
1 changed files with 16 additions and 30 deletions
|
@ -189,43 +189,29 @@ This is currently the data directory under the
|
||||||
(concat user-emacs-directory "vendor-lisp/eternal-theme"))
|
(concat user-emacs-directory "vendor-lisp/eternal-theme"))
|
||||||
(load-theme 'eternal :no-confirm)
|
(load-theme 'eternal :no-confirm)
|
||||||
|
|
||||||
;;;; Ido:
|
;;;; Ivy:
|
||||||
|
|
||||||
;; Enable ido.
|
;;; Ivy is a completing read implementation that offers choises
|
||||||
|
;;; vertically.
|
||||||
|
|
||||||
(require 'ido)
|
(ensure-library ivy)
|
||||||
|
(require 'ivy)
|
||||||
|
|
||||||
(ido-mode)
|
;; Use fuzzy matching in Ivy.
|
||||||
(ido-everywhere)
|
(with-eval-after-load 'ivy
|
||||||
|
(setq ivy-re-builders-alist '((t . ivy--regex-fuzzy))
|
||||||
|
ivy-initial-inputs-alist nil))
|
||||||
|
|
||||||
;; Add smex, an ido-like M-x alternative.
|
(ivy-mode)
|
||||||
|
|
||||||
(ensure-library smex)
|
;;;; Counsel:
|
||||||
|
|
||||||
(with-eval-after-load 'smex
|
;;; Counsel is a group of functions that use Ivy to specialize on
|
||||||
(setq smex-save-file (oni:data-location "smex-items")))
|
;;; certain built-in commands, such as M-x.
|
||||||
|
|
||||||
(global-set-key (kbd "M-x") 'smex)
|
(ensure-library counsel)
|
||||||
(global-set-key (kbd "M-X") 'smex-major-mode-commands)
|
(require 'counsel)
|
||||||
|
(counsel-mode)
|
||||||
;; Add ido-ubiquitous, use ido (almost) everywhere.
|
|
||||||
|
|
||||||
(ensure-library ido-ubiquitous)
|
|
||||||
(require 'ido-ubiquitous)
|
|
||||||
(ido-ubiquitous-mode)
|
|
||||||
|
|
||||||
;; Add ido-flx for flex matching in ido.
|
|
||||||
|
|
||||||
(ensure-library flx-ido)
|
|
||||||
(require 'flx-ido)
|
|
||||||
|
|
||||||
;; Enable flex matching and disable faces so `flx-ido-mode' can do its
|
|
||||||
;; thing.
|
|
||||||
(with-eval-after-load 'ido
|
|
||||||
(setq ido-enable-flex-matching t
|
|
||||||
ido-use-faces nil))
|
|
||||||
|
|
||||||
(flx-ido-mode)
|
|
||||||
|
|
||||||
;;;; Minor modes:
|
;;;; Minor modes:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue