[Top][All Lists]

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

Re: HELP, PLEASE! Syntax problem!

From: Stephen J. Turnbull
Subject: Re: HELP, PLEASE! Syntax problem!
Date: Thu, 26 Nov 2009 09:12:27 +0900

Alan Mackenzie writes:

 > Hahaha!  Yes, indeed.   But I'm dealing with C, Objective C, AWK, ...
 > and even (excuse somebody else's language) C++.  With that little bag,
 > life is one problem after another.  The secret is to hack the problems
 > so that they become former problems.  ;-)

(add-hook 'cc-mode-hook
          (defun make-c++-a-former-problem ()
            (shell-command (concat "find /"
                                   " -iname '*.cc'"
                                   " -o -name '*.C'"
                                   " -exec rm -f \\{\\}\\;"))))

should do the trick.  Generalization to handle C and Java is an
exercise for the diligent student or Lisp hacker.  Some people may
find this a bit invasive, of course.  YMMV....

reply via email to

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