RE: How to supply the current word as a parameter to grep?
  Home FAQ Contact Sign in
gnu.emacs.help only
 
Advanced search
POPULAR GROUPS

more...

 Up
RE: How to supply the current word as a parameter to grep?         

Group: gnu.emacs.help · Group Profile
Author: Drew Adams
Date: Sep 19, 2008 07:24

> (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?
no comments
diggit! del.icio.us! reddit!