|
From: | Kevin Rodgers |
Subject: | Re: grep/dired |
Date: | Mon, 20 Oct 2003 11:24:31 -0600 |
User-agent: | Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 |
Mike Ballard wrote:
Tried looking around but sort of don't know how to search for the answer - when I open a dired buffer of other than ~/, then use M-x grep, it searches files in ~/. I'm pretty sure the reason is because in ~/.cshrc the last thing I do is 'chdir $HOME' (which I don't want to change).
Yes, you do. :-)
In csh you can start a script with "-f" telling it to use current env - is there a way to do the same thing for Emacs' grep so that it will grep on the current dired buffer? If possible I'd like to use grep and not find-grep-dired.
You could try this hack: (setq shell-command-switch "-f -c") -- Kevin Rodgers
[Prev in Thread] | Current Thread | [Next in Thread] |