unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* How best to set grep command based on current directory?
@ 2022-04-09  1:10 Michael Welsh Duggan
  2022-04-09  6:10 ` Eli Zaretskii
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Michael Welsh Duggan @ 2022-04-09  1:10 UTC (permalink / raw)
  To: emacs-devel

I would like to change the program invocation in "M-x grep" (or maybe
"M-x grep-find") to default to "git grep" when in directories that are
in git trees.  I could hack away at the grep.el sources to do this, or I
could write some advice around the grep command to do this, but I want
to ask here, first, if anyone believes that there is a more principled
way to make this change.

-- 
Michael Welsh Duggan
(md5i@md5i.com)



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-04-09 22:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-09  1:10 How best to set grep command based on current directory? Michael Welsh Duggan
2022-04-09  6:10 ` Eli Zaretskii
2022-04-09  9:22 ` Yuri Khan
2022-04-09 22:43 ` Jim Porter

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).