Emacs выполняет внешний процесс grep и форматирует вывод.Предполагая, что вы имеете в виду источник кода, который оборачивает его и отображает его, а не сам grep, это довольно просто:
M-x find-function <RET> grep <RET>
(find-function FUNCTION)
Find the definition of the FUNCTION near point.
Finds the source file containing the definition of the function
near point (selected by `function-called-at-point') in a buffer and
places point before the definition.
Set mark before moving, if the buffer already existed.
Вы также можете найти find-library
полезным, чтобы возиться с ним.