I've read Grep Searching
from the manual. The basic that I've found out are that I can use grep
command in Emacs. I was wondering if I could use silversearcher-ag
as an alternative to grep
in M-x grep
I tried to just remove grep --color -nH --null -e
and use plain ag
command and it does actually work, i.e. it fills up the *grep*
buffer. But it's not formatted and thus Emacs can't use that buffer to jump around the matches.
I know about some packages, but I really want to know how I can change the ag
command so that the output is compatible for Emacs. Any help would be appreciated.