emacs-devel
[Top][All Lists]
Advanced

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

support for C++ files in lgrep/rgrep


From: Dan Nicolaescu
Subject: support for C++ files in lgrep/rgrep
Date: Fri, 27 Jun 2008 09:17:39 -0700

Using the c ch h "abbreviations" in lgrep/rgrep is very useful.  
Something similar for C++ would be even more useful because of the
variety of file names used for C++ files.

I have been using with good results the following :

@@ -144,7 +144,9 @@ The following place holders should be pr
 (defcustom grep-files-aliases
   '(("asm" .    "*.[sS]")
     ("c" .     "*.c")
-    ("cc" .    "*.cc")
+    ("cc" .    "*.cc *.cxx *.cpp *.C *.CC *.c++")
+    ("cch" .    "*.cc *.[ch]xx *.[ch]pp *.[CH] *.CC *.HH *.[ch]++")
+    ("hh" .    "*.hxx *.hpp *.[Hh] *.HH *.h++")
     ("ch" .    "*.[ch]")
     ("el" .    "*.el")
     ("h" .     "*.h")

Any reason not to have something like this?




reply via email to

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