From 8fb9f5aaec6f6af7fcff8e2fcf8d35a4f7e48b48 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 21 Feb 2018 15:53:38 +0100 Subject: Emacs: Grab symbol at point for ripgrep searches --- emacs/.emacs.d/main.el | 1 + 1 file changed, 1 insertion(+) 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 -- cgit 1.4.1