Your browser does not support JavaScript!
Upvotes Anonymous 4 User 0

How to setup AG (Silver Searcher) to find text in files in Spacemacs on Windows

Install AG
Configure Spacemacs
Add this line to your Spacemacs user config, so Helm can find AG:
(setq helm-ag-base-command "c:\\Users\\Jason\\AppData\\Roaming\\ag --vimgrep")
Make sure to change the path to where you installed AG. See the documentation for an explanation about the vimgrep argument.
Search within a project
Make sure you've setup a project and have a file in that project open.

Open a file in Spacemacs. Type SPACE s a p:
A search window will appear. Start typing, and you'll see fuzzy-matched results:
You can use the up/down arrow keys (or CTRL-j or CTRL-k) and then press the enter key to select a result and navigate to it.
Was this helpful?



Leave a Comment

I agree to the Terms of Service
Design © 2015, Downranked, LLC.,
Original user code contributions under MIT License