help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to supply the current word as a parameter to grep?


From: etay . meiri
Subject: How to supply the current word as a parameter to grep?
Date: Fri, 19 Sep 2008 05:01:31 -0700 (PDT)
User-agent: G2/1.0

Hi,

I have the following entries in my .emacs:

(global-set-key [(control shift f)] 'grep)
(setq grep-command "cd ~/work && find -name \"*.cpp\" -or -name \"*.h
\" | xargs grep -nH -e ")

I'd like have the current word supplied as a parameter to grep
whenever I hit the above key combination.
How do I accomplish that?

Thanks,

-Etay Meiri


reply via email to

[Prev in Thread] Current Thread [Next in Thread]