Add a bunch of ivy extras

This commit is contained in:
Jeremy Dormitzer 2019-11-27 12:42:07 -05:00
parent 972a90e380
commit 56a44242ed

View File

@ -2869,12 +2869,38 @@ An alternative minibuffer completion framework:
:config
(ivy-mode 1)
(setq ivy-height 20
ivy-wrap t)
ivy-wrap t
ivy-use-virtual-buffers t
ivy-count-format "%d/%d ")
(with-eval-after-load 'projectile
(setq projectile-completion-system 'ivy)))
(setq projectile-completion-system 'ivy))
(leader-def-key "SPC" #'counsel-M-x)
(jdormit/define-prefix "i" "ivy")
(jdormit/define-prefix "iu" "ui")
(leader-def-key "ip" #'counsel-yank-pop)
(leader-def-key "iut" #'counsel-load-theme)
(leader-def-key "is" #'swiper)
(leader-def-key "ff" #'counsel-find-file)
(leader-def-key "oc" #'counsel-org-capture)
:general
("M-x" #'counsel-M-x)
("C-x C-f" #'counsel-find-file))
(use-package ivy-hydra
:after counsel)
(use-package counsel-projectile
:after (counsel projectile)
:commands (counsel-projectile
counsel-projectile-switch-project
counsel-projectile-find-file
counsel-projectile-grep)
:init
(leader-def-key "pp" #'counsel-projectile)
(leader-def-key "pf" #'counsel-projectile-find-file)
(if (executable-find "rg")
(leader-def-key "pg" #'counsel-projectile-rg)
(leader-def-key "pg" #'counsel-projectile-grep)))
#+END_SRC
* graphviz
#+BEGIN_SRC emacs-lisp