summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2023-04-09 18:28:46 +0200
committerAlan Pearce2023-04-09 18:28:46 +0200
commit1ca9bbf5d3a52673154d4c43ee2a8d0a89e51fce (patch)
tree5c8831cb3a2471a79548e4c58528f22156cf771f
parent24c69efdb83e616c9a6296af7fde7d17df2dea93 (diff)
downloadnixfiles-1ca9bbf5d3a52673154d4c43ee2a8d0a89e51fce.tar.lz
nixfiles-1ca9bbf5d3a52673154d4c43ee2a8d0a89e51fce.tar.zst
nixfiles-1ca9bbf5d3a52673154d4c43ee2a8d0a89e51fce.zip
emacs: re-enable live project-based grep
-rw-r--r--user/emacs/init.el5
-rw-r--r--user/settings/emacs.nix1
2 files changed, 6 insertions, 0 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 9d02daea..89d06cb8 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -935,6 +935,11 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
               (evil-ex-define-cmd "pb" #'projectile-switch-to-buffer)
               (evil-ex-define-cmd "psw[itch]" #'projectile-switch-project))))
 
+(use-package counsel-projectile
+  :general (:keymaps 'projectile-command-map
+                     "s s" #'counsel-projectile-rg
+                     "s r" #'counsel-projectile-rg))
+
 (use-package magit
   :defer 5
   :commands (magit-status magit-dispatch)
diff --git a/user/settings/emacs.nix b/user/settings/emacs.nix
index 89586763..8040f110 100644
--- a/user/settings/emacs.nix
+++ b/user/settings/emacs.nix
@@ -89,6 +89,7 @@ in
         consult
         consult-eglot
         counsel
+        counsel-projectile
         crux
         ctrlf
         dired-git-info