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

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

grep options


From: Ken Goldman
Subject: grep options
Date: Fri, 14 Jan 2011 13:47:38 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Red Hat/3.1.7-3.el6_0 Thunderbird/3.1.7

When I use grep on C source, I'd like it to search all C source (.c, .h, .cpp), not just the files with the same extension.

I could do that with the (obsolete) igrep like this. Can I reproduce it with emacs 23 / grep?

(put 'igrep-files-default 'c-mode
     (lambda () "*.[ch] *.cpp"))





reply via email to

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