From fd7aa49c7766278ed51a5e5bf6b88b8a54b7582a Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Thu, 12 Dec 2019 15:23:19 -0500 Subject: [PATCH] Bind counsel-rg/grep --- emacs/init.org | 3 +++ 1 file changed, 3 insertions(+) diff --git a/emacs/init.org b/emacs/init.org index 9459969..5ae9dd5 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -2920,6 +2920,9 @@ An alternative minibuffer completion framework: (leader-def-key "ff" #'counsel-find-file) (leader-def-key "oc" #'counsel-org-capture) (leader-def-key "bb" #'counsel-ibuffer) + (if (executable-find "rg") + (leader-def-key "ig" #'counsel-rg) + (leader-def-key "ig" #'counsel-grep)) :general ("M-x" #'counsel-M-x) ("C-x C-f" #'counsel-find-file)