aboutsummaryrefslogtreecommitdiffstats
path: root/emacs/.emacs.d/init.el
diff options
context:
space:
mode:
authorGravatar Tom Willemse2016-07-26 03:19:28 +0200
committerGravatar Tom Willemse2016-07-26 03:19:28 +0200
commit291b309522d411c4dcea202a05705dc111d8c60b (patch)
tree4a113c1e468058d7b72df9afe4b4a44cc4d6be12 /emacs/.emacs.d/init.el
parentf485cf9f341359d0b50730f43c27ba8fb224a1fa (diff)
downloadnew-dotfiles-291b309522d411c4dcea202a05705dc111d8c60b.tar.gz
new-dotfiles-291b309522d411c4dcea202a05705dc111d8c60b.zip
Remove ido, replace with ivy and counsel
Diffstat (limited to 'emacs/.emacs.d/init.el')
-rw-r--r--emacs/.emacs.d/init.el46
1 files changed, 16 insertions, 30 deletions
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el
index a2df5e7..537e430 100644
--- a/emacs/.emacs.d/init.el
+++ b/emacs/.emacs.d/init.el
@@ -189,43 +189,29 @@ This is currently the data directory under the
(concat user-emacs-directory "vendor-lisp/eternal-theme"))
(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)
-(ido-everywhere)
+;; Use fuzzy matching in Ivy.
+(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
- (setq smex-save-file (oni:data-location "smex-items")))
+;;; Counsel is a group of functions that use Ivy to specialize on
+;;; certain built-in commands, such as M-x.
-(global-set-key (kbd "M-x") 'smex)
-(global-set-key (kbd "M-X") 'smex-major-mode-commands)
-
-;; 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)
+(ensure-library counsel)
+(require 'counsel)
+(counsel-mode)
;;;; Minor modes: