From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: mdj Newsgroups: gmane.emacs.help Subject: Re: Use emacs function (beautify) in emacs script Date: Wed, 7 Oct 2009 01:43:34 -0700 (PDT) Organization: http://groups.google.com Message-ID: <388cd55d-b86b-4f3a-886c-c05ae4d032ce@q40g2000prh.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1254970579 21622 80.91.229.12 (8 Oct 2009 02:56:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 Oct 2009 02:56:19 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 08 04:56:10 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MvjAl-0004lT-SZ for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Oct 2009 04:56:08 +0200 Original-Received: from localhost ([127.0.0.1]:51029 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MvjAl-0000zY-BY for geh-help-gnu-emacs@m.gmane.org; Wed, 07 Oct 2009 22:56:07 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!q40g2000prh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: 139.130.5.94 Original-X-Trace: posting.google.com 1254905015 25133 127.0.0.1 (7 Oct 2009 08:43:35 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 7 Oct 2009 08:43:35 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: q40g2000prh.googlegroups.com; posting-host=139.130.5.94; posting-account=gKwMEAoAAACgdZoRArZlfcCSOA8KWMxg User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.14) Gecko/2009091106 CentOS/3.0.14-1.el5.centos Firefox/3.0.14, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:173625 X-Mailman-Approved-At: Wed, 07 Oct 2009 22:53:12 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:68749 Archived-At: On Oct 7, 6:04=A0pm, Beware wrote: > Hi all, > > I used a simply script to auto indent my VHDL code files. But in emacs > there is a function which set all VHDL keywords in uppercase =A0with > beautify function in VHDL mode menu. > > So i would to use this function in my script but i don't know how. > > If someone can help me, i very appreciate. >From the VHDL mode help (which you can read yourself if you open a buffer in VHDL mode with C-h m): CODE BEAUTIFICATION: `C-c M-b' and `C-c C-b' beautify the code of a region or of the entire buffer respectively. This inludes indentation, alignment, and case fixing. Code beautification can also be run non-interactively using the command: emacs -batch -l ~/.emacs filename.vhd -f vhdl-beautify-buffer Matt