From: Ed L Cashin <ecashin@uga.edu>
Subject: Re: dir-specific grep-find-command?
Date: Thu, 19 Jun 2003 01:13:36 -0400 [thread overview]
Message-ID: <87brwuvedb.fsf@cs.uga.edu> (raw)
In-Reply-To: 3EEF67A0.1020507@yahoo.com
Kevin Rodgers <ihs_4664@yahoo.com> writes:
> Ed L Cashin wrote:
[ugly override of grep-find]
...
> How about something like this:
>
> (defun in-kernel-hook ()
> "If `in-kernel', override global `grep-find-command' value."
> (if (in-kernel 0)
> (set (make-local-variable 'grep-find-command) "kern-grep-find")))
>
> (add-hook 'find-file-hooks 'in-kernel-hook)
> (add-hook 'dired-mode-hook 'in-kernel-hook)
Excellent! That seems to do exactly what I wanted.
Did you already know about those hooks or did you just know how to
find them, because I guess I failed to find them.
--
--Ed L Cashin PGP public key: http://noserose.net/e/pgp/
next prev parent reply other threads:[~2003-06-19 5:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-15 23:54 dir-specific grep-find-command? Ed L Cashin
2003-06-17 19:10 ` Kevin Rodgers
2003-06-19 5:13 ` Ed L Cashin [this message]
2003-06-20 15:07 ` Kevin Rodgers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87brwuvedb.fsf@cs.uga.edu \
--to=ecashin@uga.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).