summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2018-02-21 15:53:38 +0100
committerAlan Pearce2018-02-21 15:53:38 +0100
commit8fb9f5aaec6f6af7fcff8e2fcf8d35a4f7e48b48 (patch)
tree9df774054b3c68ebe745da327ca79862c2eaeaea /emacs
parent115d6f250fc30150a3c7555e0ba50122710bbd39 (diff)
downloadnixfiles-8fb9f5aaec6f6af7fcff8e2fcf8d35a4f7e48b48.tar.lz
nixfiles-8fb9f5aaec6f6af7fcff8e2fcf8d35a4f7e48b48.tar.zst
nixfiles-8fb9f5aaec6f6af7fcff8e2fcf8d35a4f7e48b48.zip
Emacs: Grab symbol at point for ripgrep searches
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/main.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el
index e0c7cd54..02960ece 100644
--- a/emacs/.emacs.d/main.el
+++ b/emacs/.emacs.d/main.el
@@ -578,6 +578,7 @@
             (def-projectile-commander-method ?A
               "Find rg on project."
               (call-interactively #'counsel-projectile-rg))
+            (setq counsel-projectile-rg-initial-input '(projectile-symbol-or-selection-at-point))
             (define-key counsel-projectile-command-map (kbd "s s") #'counsel-projectile-rg)))
 
 ;;;;; vc