Emacs: Fix oddities with counsel-projectile
Alan Pearce alan@alanpearce.eu
Wed, 17 Oct 2018 22:26:36 +0200
1 files changed, 3 insertions(+), 3 deletions(-)
jump to
M emacs/.emacs.d/main.el → emacs/.emacs.d/main.el
@@ -434,8 +434,7 @@ (use-package projectile-ripgrep :after (ripgrep projectile) :if (executable-find "rg") - :bind (:map projectile-command-map - ("s r" . projectile-ripgrep))) + :config (bind-key "s r" #'projectile-ripgrep projectile-command-map)) ;;;;; Projectile @@ -561,7 +560,8 @@ (counsel-projectile-mode +1) (def-projectile-commander-method ?A "Find rg on project." (call-interactively #'counsel-projectile-rg)) - (define-key counsel-projectile-command-map (kbd "s s") #'counsel-projectile-rg))) + (if (boundp 'counsel-projectile-command-map) + (define-key counsel-projectile-command-map (kbd "s s") #'counsel-projectile-rg)))) ;;;;; vc