$ grep -nrH would . | tee file.txt
$ emacs file.txt
If I have a buffer with grep search results, how can I make Emacs jump to the file and line number on the cursor line, similar to diff-goto-source
in diff-mode
?
./path/to/my/one.txt:1234 RMS and YAK would hit it off
./other/two.txt:5678 They sure would
Furthermore, when I'm visiting the first file, one.txt
, how can I make Emacs jump to the next file and line in the grep buffer, two.txt
?