From 56a44242ede0f304fba75f5058af07a4f2e21d04 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Wed, 27 Nov 2019 12:42:07 -0500 Subject: [PATCH] Add a bunch of ivy extras --- emacs/init.org | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/emacs/init.org b/emacs/init.org index c1d943d..d666f81 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -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