[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How best to set grep command based on current directory?
From: |
Michael Welsh Duggan |
Subject: |
How best to set grep command based on current directory? |
Date: |
Fri, 08 Apr 2022 21:10:19 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
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)
- How best to set grep command based on current directory?,
Michael Welsh Duggan <=