Using helm-ag to search and replace in an Emacs project
I’ve recently found this great little Emacs
helm
plug-in by
syohex called helm-ag
.
It provides a helm
interface for searching with the, silver searcher, ag
command.
I think it’s a gem! You type M-x helm-ag
and start typing. It’ll open up a
helm
menu searching your files:
You can then type C-e
inside that buffer and switch to “edit” mode, where you
can edit the matches, pressing C-c C-c
to save and C-c C-k
to abort:
I have it aliased to ,ag
and I think it’s a very nice time saver.