[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Code formatter
From: |
Carl Sorensen |
Subject: |
Re: Code formatter |
Date: |
Fri, 13 Nov 2009 12:46:56 -0700 |
On 11/13/09 12:39 PM, "Graham Percival" <address@hidden> wrote:
> On Fri, Nov 13, 2009 at 08:18:04PM +0100, Nicolas Sceaux wrote:
>> Le 13 nov. 2009 à 20:01, Werner LEMBERG a écrit :
>>
>>> 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.
>
> If you could choose one such example, and add it somewhere to the
> CG similar to this:
> http://lilypond.org/doc/v2.13/Documentation/contributor/Sectioning-commands
> (bottom of the page)
That specific example is already in section 8.5 with a note that it needs to
be confirmed on -devel.
http://lilypond.org/doc/v2.13/Documentation/contributor/Code-style#Code-styl
e
I've moved it in the current git sources, but it's still in section 8.5,
specifically 8.5.5 Indenting files with emacs in script mode.
Thanks,
Carl
- Re: Code formatter, (continued)
- Re: Code formatter, Jan Nieuwenhuizen, 2009/11/15
- Re: Code formatter, Carl Sorensen, 2009/11/13
- Re: Code formatter, Werner LEMBERG, 2009/11/13
- Re: Code formatter, Graham Percival, 2009/11/13
- Re: Code formatter, Nicolas Sceaux, 2009/11/13
- Re: Code formatter, Graham Percival, 2009/11/13
- Re: Code formatter, Neil Puttock, 2009/11/13
- Re: Code formatter, Graham Percival, 2009/11/13
- Re: Code formatter, Neil Puttock, 2009/11/13
- Re: Code formatter, Carl Sorensen, 2009/11/13
- Re: Code formatter,
Carl Sorensen <=
- Re: Code formatter, Graham Percival, 2009/11/13
- Re: Code formatter, Carl Sorensen, 2009/11/13
- Re: Code formatter, Graham Percival, 2009/11/13
- Re: Code formatter, Neil Puttock, 2009/11/13
- Re: Code formatter, Neil Puttock, 2009/11/13
- Re: Code formatter, Werner LEMBERG, 2009/11/14
- Re: Code formatter, Graham Percival, 2009/11/13
- Re: Code formatter, Trevor Daniels, 2009/11/13
- Re: Code formatter, Graham Percival, 2009/11/13
- Re: Code formatter, Carl Sorensen, 2009/11/13