Tweak the ivy module

This commit is contained in:
Bozhidar Batsov 2020-09-23 09:53:33 +03:00
parent ed6d63570b
commit eb1702eed7

View file

@ -9,7 +9,10 @@
;;; Commentary:
;; Ivy-related config.
;; Ivy-related config. Ivy is a smart framework for minibuffer
;; completion/filtering/selection (think of ido). Swiper and counsel
;; are two packages built on top of ivy that provide ivy-powered
;; versions of popular Emacs commands.
;;; License:
@ -31,6 +34,7 @@
;;; Code:
(prelude-require-packages '(ivy swiper counsel))
;;; Ivy
;; ivy is a powerful alternative to the popular ido-mode
(require 'ivy)
@ -43,11 +47,12 @@
(setq projectile-completion-system 'ivy)
;;; Swiper
;; swiper provides enhanced buffer search
(global-set-key "\C-s" 'swiper)
;;; Counsel
;; counsel supercharges a lot of commands with some ivy magic
(global-set-key (kbd "M-x") 'counsel-M-x)
@ -63,6 +68,5 @@
(global-set-key (kbd "C-x l") 'counsel-locate)
(define-key minibuffer-local-map (kbd "C-r") 'counsel-minibuffer-history)
(provide 'prelude-ivy)
;;; prelude-ivy.el ends here