Variable: grep-command
grep-command is a customizable variable defined in grep.el.gz.
Value
nil
Documentation
The default grep command for M-x grep (grep).
If the grep program used supports an option to always include file names
in its output (such as the -H option to GNU grep), it's a good idea to
include it when specifying grep-command.
In interactive usage, the actual value of this variable is set up
by grep-compute-defaults; to change the default value, use
M-x customize (customize) or call the function grep-apply-setting.
Also see grep-command-position.
Probably introduced at or before Emacs version 21.1.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/grep.el.gz
;;;###autoload
(defcustom grep-command nil
"The default grep command for \\[grep].
If the grep program used supports an option to always include file names
in its output (such as the `-H' option to GNU grep), it's a good idea to
include it when specifying `grep-command'.
In interactive usage, the actual value of this variable is set up
by `grep-compute-defaults'; to change the default value, use
\\[customize] or call the function `grep-apply-setting'.
Also see `grep-command-position'."
:type '(choice string
(const :tag "Not Set" nil))
:set #'grep-apply-setting)