First version of use-package

This commit is contained in:
Maciej 2019-07-16 21:04:35 +03:00
parent 42ff73fdd7
commit fca83b0b97
Signed by: maciej
GPG key ID: 41D62D42D3B0D765
15 changed files with 214 additions and 197 deletions

View file

@ -1,17 +1,20 @@
(setq-default ivy-use-virtual-buffers t ;; Display recent files in ivy-switch-buffer
ivy-count-format "(%d of %d) " ;; Current candidate count style
ivy-display-style 'fancy ;; Formatting style
)
(use-package ivy
:requires (counsel swiper)
:ensure t
:config (setq-default ivy-use-virtual-buffers t ;; Display recent files in ivy-switch-buffer
ivy-count-format "(%d of %d) " ;; Current candidate count 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)
(global-set-key (kbd "C-c a") 'counsel-ag)
(global-set-key (kbd "C-c b") 'ivy-switch-buffer)
(global-set-key (kbd "C-c t") 'counsel-find-file)
("C-c C-s" . swiper) ;; Find things by regexp
("M-x" . counsel-M-x) ;; M-x on steroids
(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
(global-set-key (kbd "<f1> f") 'counsel-describe-function)
(global-set-key (kbd "<f1> v") 'counsel-describe-variable)
(global-set-key (kbd "<f1> l") 'counsel-find-library)
(global-set-key (kbd "<f2> i") 'counsel-info-lookup-symbol)
(global-set-key (kbd "<f2> u") 'counsel-unicode-char)
("<f1> f" . counsel-describe-function)
("<f1> v" . counsel-describe-variable)
("<f1> l" . counsel-find-library)
("<f2> i" . counsel-info-lookup-symbol)
("<f2> u" . counsel-unicode-char)
("C-c b" . ivy-switch-buffer))