lilypond-devel
[Top][All Lists]
Advanced

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

Re: Code formatter


From: Nicolas Sceaux
Subject: Re: Code formatter
Date: Fri, 13 Nov 2009 20:18:04 +0100

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





reply via email to

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