help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: M-x indent-region


From: Kai Großjohann
Subject: Re: M-x indent-region
Date: Mon, 05 May 2003 08:12:34 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (gnu/linux)

Sanford Selznick <address@hidden> writes:

> In emacs, 'M-x indent-region' is the best indent I've ever seen.
>
> How can I trigger this action from the command-line and have emacs 
> indent an individual file?

Maybe something like this.

emacs -batch --eval '(find-file "foo)' \
             --eval '(indent-region (point-min) (point-max))' 
             -f save-buffer -f save-buffers-kill-emacs

But I haven't tested it.
-- 
file-error; Data: (Opening input file no such file or directory ~/.signature)


reply via email to

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