From dd6059785d1806799094213294e6b836edd5d820 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sat, 20 Oct 2018 17:52:24 +0200 Subject: [PATCH] =?UTF-8?q?[Init]=20Don=E2=80=99t=20assume=20=E2=80=98ag?= =?UTF-8?q?=E2=80=99=20is=20installed,=20default=20to=20=E2=80=98rgrep?= =?UTF-8?q?=E2=80=99=20in=20this=20case?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index d30e785..ded1d05 100644 --- a/init.el +++ b/init.el @@ -159,7 +159,7 @@ (bind-key "" #'db/run-or-hide-eshell) (bind-key " i" #'counsel-info-lookup-symbol) (bind-key " u" #'counsel-unicode-char) - (bind-key "" #'counsel-ag) + (bind-key "" #'rgrep) (bind-key "" #'hydra-zoom/body) (bind-key "" #'dictcc) (bind-key "" #'counsel-locate) @@ -240,6 +240,9 @@ (when (package-installed-p 'ace-window) (bind-key "C-x o" #'ace-window)) + (when (executable-find "ag") + (bind-key "" #'counsel-ag)) + ;; Environment Variables (unless on-windows