[Init] Don’t assume ‘ag’ is installed, default to ‘rgrep’ in this case

This commit is contained in:
Daniel - 2018-10-20 17:52:24 +02:00
parent a38efb3133
commit dd6059785d
Signed by: dbo
GPG Key ID: 4F63DB96D45AA9C6
1 changed files with 4 additions and 1 deletions

View File

@ -159,7 +159,7 @@
(bind-key "<f1>" #'db/run-or-hide-eshell)
(bind-key "<f2> i" #'counsel-info-lookup-symbol)
(bind-key "<f2> u" #'counsel-unicode-char)
(bind-key "<f5>" #'counsel-ag)
(bind-key "<f5>" #'rgrep)
(bind-key "<f6>" #'hydra-zoom/body)
(bind-key "<f7>" #'dictcc)
(bind-key "<f8>" #'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 "<f5>" #'counsel-ag))
;; Environment Variables
(unless on-windows