all repos — archive/dotfiles @ 8fb9f5aaec6f6af7fcff8e2fcf8d35a4f7e48b48

Superseded by nixfiles

Emacs: Grab symbol at point for ripgrep searches
Alan Pearce alan@alanpearce.eu
Wed, 21 Feb 2018 15:53:38 +0100
commit

8fb9f5aaec6f6af7fcff8e2fcf8d35a4f7e48b48

parent

115d6f250fc30150a3c7555e0ba50122710bbd39

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M emacs/.emacs.d/main.elemacs/.emacs.d/main.el
@@ -578,6 +578,7 @@ (counsel-projectile-mode +1)             (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