ivy mode support improved
This commit is contained in:
parent
633dbbb9c7
commit
a6b2ec09a1
|
@ -6,7 +6,7 @@
|
||||||
(theme themes/color-theme-monokai)
|
(theme themes/color-theme-monokai)
|
||||||
|
|
||||||
;; Disable abilities which we do not want to load
|
;; Disable abilities which we do not want to load
|
||||||
(disable 'rbenv 'helm 'swiper)
|
(disable 'rbenv 'helm)
|
||||||
|
|
||||||
;; Activate these extensions
|
;; Activate these extensions
|
||||||
(activate-extensions 'editor
|
(activate-extensions 'editor
|
||||||
|
|
|
@ -10,6 +10,10 @@
|
||||||
(depends-on 'ov)
|
(depends-on 'ov)
|
||||||
(depends-on 'cheatsheet)
|
(depends-on 'cheatsheet)
|
||||||
|
|
||||||
|
(with-ability ivy
|
||||||
|
(depends-on 'ivy)
|
||||||
|
(depends-on 'counsel))
|
||||||
|
|
||||||
(with-ability ido
|
(with-ability ido
|
||||||
(depends-on 'ido)
|
(depends-on 'ido)
|
||||||
(depends-on 'ido-ubiquitous)
|
(depends-on 'ido-ubiquitous)
|
||||||
|
|
|
@ -144,19 +144,27 @@
|
||||||
|
|
||||||
(helm-mode 1))
|
(helm-mode 1))
|
||||||
|
|
||||||
;; Swiper ---------------------------------------------------
|
(ability ivy ()
|
||||||
(ability swiper ()
|
"Completion using ivy."
|
||||||
"Replace default isearch with swiper"
|
|
||||||
(require 'ivy)
|
(require 'ivy)
|
||||||
(ivy-mode 1)
|
(ivy-mode 1)
|
||||||
|
|
||||||
(setq ivy-use-virtual-buffers t)
|
(setq ivy-use-virtual-buffers t)
|
||||||
(global-set-key "\C-s" 'swiper)
|
|
||||||
(global-set-key "\C-r" 'swiper)
|
|
||||||
(global-set-key (kbd "C-c C-r") 'ivy-resume)
|
(global-set-key (kbd "C-c C-r") 'ivy-resume)
|
||||||
(global-set-key [f6] 'ivy-resume)
|
(global-set-key (kbd "M-x") 'counsel-M-x)
|
||||||
(with-ability ido
|
(global-set-key (kbd "<f1> f") 'counsel-describe-function)
|
||||||
(global-set-key (kbd "C-x b") 'ido-switch-buffer)))
|
(global-set-key (kbd "<f1> v") 'counsel-describe-variable)
|
||||||
|
(global-set-key (kbd "<f1> l") 'counsel-load-library)
|
||||||
|
(global-set-key (kbd "<f2> i") 'counsel-info-lookup-symbol)
|
||||||
|
(global-set-key (kbd "<f2> u") 'counsel-unicode-char))
|
||||||
|
|
||||||
|
;; Swiper ---------------------------------------------------
|
||||||
|
(ability swiper (ivy)
|
||||||
|
"Replace default isearch with swiper"
|
||||||
|
(global-set-key "\C-s" 'swiper)
|
||||||
|
(global-set-key "\C-r" 'swiper))
|
||||||
|
;; (with-ability ido
|
||||||
|
;; (global-set-key (kbd "C-x b") 'ido-switch-buffer)))
|
||||||
|
|
||||||
;; Session Management ---------------------------------------
|
;; Session Management ---------------------------------------
|
||||||
(desktop-save-mode 1)
|
(desktop-save-mode 1)
|
||||||
|
|
Loading…
Reference in New Issue