From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai Grossjohann Newsgroups: gmane.emacs.help Subject: Re: automate Emacs beautifyer ? Date: Sat, 28 Aug 2004 12:58:56 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <86sma7h6kv.fsf@ketchup.de.uu.net> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1093690793 11787 80.91.224.253 (28 Aug 2004 10:59:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 28 Aug 2004 10:59:53 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 28 12:59:43 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C10vu-000242-00 for ; Sat, 28 Aug 2004 12:59:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C110c-0006BY-U0 for geh-help-gnu-emacs@m.gmane.org; Sat, 28 Aug 2004 07:04:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C110T-0006BJ-QX for help-gnu-emacs@gnu.org; Sat, 28 Aug 2004 07:04:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C110S-0006B3-QV for help-gnu-emacs@gnu.org; Sat, 28 Aug 2004 07:04:25 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C110S-0006Au-NU for help-gnu-emacs@gnu.org; Sat, 28 Aug 2004 07:04:24 -0400 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C10vQ-0003V1-6z for help-gnu-emacs@gnu.org; Sat, 28 Aug 2004 06:59:12 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1C10vO-00055z-00 for ; Sat, 28 Aug 2004 12:59:10 +0200 Original-Received: from pd951fec4.dip.t-dialin.net ([217.81.254.196]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 28 Aug 2004 12:59:10 +0200 Original-Received: from kai by pd951fec4.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 28 Aug 2004 12:59:10 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 23 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: pd951fec4.dip.t-dialin.net User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:FWlCZmV0gnYMLLm62FjEqE/vLDY= 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: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:20342 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:20342 Bert Cuzeau <_no_spa_m_info_no_underscore_@alse-fr___.com> writes: > 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 My suggestion is to use dired and kbd macros. Use M-x find-dired RET to get a list of all VHDL files under a directory. Then start recording kbd macros with C-x (, then beautify the first file manually, then move point to the next file in the dired buffer, then end the kbd macro with C-x ). >>From dired, you can use RET to open the file in the current line. Then you do the C-c C-b thing, then C-x C-s, then C-x k RET. Then you should be back in the dired buffer, where n takes you to the next line. This is a general method that is often useful. Kai