[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 --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:
> (bottom of the page)

That specific example is already in section 8.5 with a note that it needs to
be confirmed on -devel.

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.



reply via email to

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