Le 13 nov. 2009 à 20:01, Werner LEMBERG a écrit :

> 
>> The rules are already defined (albeit unsatisfactorily in my opinion):
>> 
>> Do whatever emacs does.
> 
> Then, for goodness' sake, why not write a small elisp program to use
> Emacs in batch mode on the command line (yes, this is possible) to
> format one or more files?  Emacs runs on Windows too, and nobody would
> be forced to actually *use* it as an editor...

A quick google search gives:

emacs -batch sample.cc --eval '(indent-region (point-min) (point-max) nil)' -f 
save-buffer

But there are plenty of examples.

Nicolas



_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to