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

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

Re: automate Emacs beautifyer ?


From: Kevin Rodgers
Subject: Re: automate Emacs beautifyer ?
Date: Tue, 24 Aug 2004 09:52:02 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

Bert Cuzeau wrote:
> Under Windows (or Unix), is there a way to automate Emacs doing
> only :
> - open file
> - VHDL - beautify - Buffer (C-c C-b)
> - save file
> - exit
>
> We have hundreds of files to "beautify" with VHDL-mode and it is a
> chore doing this by hand.
>
> Ideally, emacs with command line parameters would suit me great...

Of course:

for file in *.vhdl; do
  # Long options for readability:
  emacs --batch --visit=$file \
        --funcall=vhdl-beautify-buffer --funcall=save-buffer
  # Short options for brevity:
  # emacs -batch $file -f vhdl-beautify-buffer -f save-buffer
done

See the "Command Line Arguments" section of the Emacs manual,
especially the "Initial Options" and "Action Arguments" subnodes.

--
Kevin Rodgers



reply via email to

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