Emacs: enable projectile-ripgrep to be used
Alan Pearce alan@alanpearce.eu
Mon, 26 Aug 2019 16:32:15 +0200
1 files changed, 7 insertions(+), 4 deletions(-)
jump to
M emacs/.emacs.d/main.el → emacs/.emacs.d/main.el
@@ -310,15 +310,18 @@ (use-package counsel-projectile :commands (counsel-projectile-switch-project counsel-projectile-rg - counsel-projectile-switch-to-buffer) + counsel-projectile-switch-to-buffer + counsel-projectile-mode) :general (:keymaps 'projectile-command-map - "s s" #'counsel-projectile-rg) + "s s" #'counsel-projectile-rg + "s r" #'counsel-projectile-rg) :config (progn + (assq-delete-all #'projectile-ripgrep counsel-projectile-key-bindings) + (counsel-projectile-mode +1) (with-eval-after-load 'evil-ex (evil-ex-define-cmd "cprg" #'counsel-projectile-rg) (evil-ex-define-cmd "pb" #'counsel-projectile-switch-to-buffer) - (evil-ex-define-cmd "psw[itch]" #'counsel-projectile-switch-project))) - :custom ((counsel-projectile-mode +1))) + (evil-ex-define-cmd "psw[itch]" #'counsel-projectile-switch-project)))) (use-package magit :commands (magit-status magit-dispatch)