summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2019-08-26 16:32:15 +0200
committerAlan Pearce2019-08-26 16:33:41 +0200
commit9cc876b29ad5efaad64adf0ec3fe1a2b8c43d687 (patch)
treeb99687b7e30aadf2a6390bec7d3a629dc49ad3a7 /emacs
parent61c4d1c42791542ed4d34cad5cf8494ef6d01104 (diff)
downloaddotfiles-9cc876b29ad5efaad64adf0ec3fe1a2b8c43d687.tar.lz
dotfiles-9cc876b29ad5efaad64adf0ec3fe1a2b8c43d687.tar.zst
dotfiles-9cc876b29ad5efaad64adf0ec3fe1a2b8c43d687.zip
Emacs: enable projectile-ripgrep to be used
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/main.el11
1 files changed, 7 insertions, 4 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el
index 30eae4e..428f3bd 100644
--- a/emacs/.emacs.d/main.el
+++ b/emacs/.emacs.d/main.el
@@ -310,15 +310,18 @@ With two prefix arguments, write out the day and month name."
 (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)