Fix broken counsel code
This commit is contained in:
parent
25ae32204d
commit
2a499a3583
1 changed files with 17 additions and 15 deletions
30
02ivy.el
30
02ivy.el
|
|
@ -1,20 +1,22 @@
|
||||||
|
(use-package counsel :ensure t :defer t)
|
||||||
|
(use-package swiper :ensure t :defer t)
|
||||||
|
|
||||||
(use-package ivy
|
(use-package ivy
|
||||||
:requires (counsel swiper)
|
:requires (counsel swiper)
|
||||||
:ensure t
|
:ensure t
|
||||||
:config (setq-default ivy-use-virtual-buffers t ;; Display recent files in ivy-switch-buffer
|
:defer t
|
||||||
|
:config (setq ivy-use-virtual-buffers t ;; Display recent files in ivy-switch-buffer
|
||||||
ivy-count-format "(%d of %d) " ;; Current candidate count style
|
ivy-count-format "(%d of %d) " ;; Current candidate count style
|
||||||
ivy-display-style 'fancy) ;; Formatting style
|
ivy-display-style 'fancy)) ;; Formatting style
|
||||||
:bind ("C-c a" . counsel-ag)
|
|
||||||
("C-c a" . counsel-ag)
|
|
||||||
("C-c b" . ivy-switch-buffer)
|
|
||||||
("C-c t" . counsel-find-file)
|
|
||||||
|
|
||||||
("C-c C-s" . swiper) ;; Find things by regexp
|
(global-set-key (kbd "C-c a") 'counsel-ag)
|
||||||
("M-x" . counsel-M-x) ;; M-x on steroids
|
(global-set-key (kbd "C-c b") 'ivy-switch-buffer)
|
||||||
|
(global-set-key (kbd "C-c t") 'counsel-find-file)
|
||||||
|
(global-set-key (kbd "C-c C-s") 'swiper) ;; Find things by regexp
|
||||||
|
(global-set-key (kbd "M-x") 'counsel-M-x) ;; M-x on steroids
|
||||||
|
|
||||||
("<f1> f" . counsel-describe-function)
|
(global-set-key (kbd "<f1> f") 'counsel-describe-function)
|
||||||
("<f1> v" . counsel-describe-variable)
|
(global-set-key (kbd "<f1> v") 'counsel-describe-variable)
|
||||||
("<f1> l" . counsel-find-library)
|
(global-set-key (kbd "<f1> l") 'counsel-find-library)
|
||||||
("<f2> i" . counsel-info-lookup-symbol)
|
(global-set-key (kbd "<f2> i") 'counsel-info-lookup-symbol)
|
||||||
("<f2> u" . counsel-unicode-char)
|
(global-set-key (kbd "<f2> u") 'counsel-unicode-char)
|
||||||
("C-c b" . ivy-switch-buffer))
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue