Use helpful
This commit is contained in:
parent
7cf83bf2fe
commit
96e8daf9ee
4 changed files with 13 additions and 6 deletions
12
pkg/ivy.el
12
pkg/ivy.el
|
|
@ -5,21 +5,29 @@
|
|||
|
||||
(use-package counsel :ensure t :defer t)
|
||||
(use-package swiper :ensure t :defer t)
|
||||
(use-package helpful :ensure t :defer t)
|
||||
|
||||
(use-package ivy
|
||||
:requires (counsel swiper)
|
||||
:requires (counsel swiper helpful)
|
||||
:ensure t
|
||||
: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-wrap t ;; Wrap around completions
|
||||
ivy-display-style 'fancy)) ;; Formatting style
|
||||
ivy-display-style 'fancy ;; Formatting style
|
||||
))
|
||||
|
||||
;; Use helpful for showing Elisp documentation
|
||||
(setq counsel-describe-function-function #'helpful-callable)
|
||||
(setq counsel-describe-variable-function #'helpful-variable)
|
||||
|
||||
(global-set-key (kbd "C-c a") 'counsel-rg)
|
||||
(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
|
||||
|
||||
;; List all key bindings there are.
|
||||
;; (global-set-key (kbd "<f1> b") 'describe-bindings)
|
||||
(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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue