diff options
author | Alan Pearce | 2018-02-21 15:53:38 +0100 |
---|---|---|
committer | Alan Pearce | 2018-02-21 15:53:38 +0100 |
commit | 8fb9f5aaec6f6af7fcff8e2fcf8d35a4f7e48b48 (patch) | |
tree | 9df774054b3c68ebe745da327ca79862c2eaeaea /emacs | |
parent | 115d6f250fc30150a3c7555e0ba50122710bbd39 (diff) | |
download | dotfiles-8fb9f5aaec6f6af7fcff8e2fcf8d35a4f7e48b48.tar.lz dotfiles-8fb9f5aaec6f6af7fcff8e2fcf8d35a4f7e48b48.tar.zst dotfiles-8fb9f5aaec6f6af7fcff8e2fcf8d35a4f7e48b48.zip |
Emacs: Grab symbol at point for ripgrep searches
Diffstat (limited to 'emacs')
-rw-r--r-- | emacs/.emacs.d/main.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el index e0c7cd5..02960ec 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 |