From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22541 invoked from network); 22 Mar 2004 11:58:46 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 22 Mar 2004 11:58:46 -0000 Received: (qmail 13737 invoked by alias); 22 Mar 2004 11:58:29 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7226 Received: (qmail 13728 invoked from network); 22 Mar 2004 11:58:29 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 22 Mar 2004 11:58:29 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [130.225.247.86] by sunsite.dk (MessageWall 1.0.8) with SMTP; 22 Mar 2004 11:58:29 -0000 Received: (qmail 4705 invoked from network); 22 Mar 2004 11:58:29 -0000 Received: from lakemtao06.cox.net (68.1.17.115) by a.mx.sunsite.dk with SMTP; 22 Mar 2004 11:58:27 -0000 Received: from quark.hightek.org ([68.12.75.33]) by lakemtao06.cox.net (InterMail vM.5.01.06.08 201-253-122-130-108-20031117) with ESMTP id <20040322115759.WCXT18400.lakemtao06.cox.net@quark.hightek.org> for ; Mon, 22 Mar 2004 06:57:59 -0500 Received: by quark.hightek.org (Postfix, from userid 501) id 9D58E123FF; Mon, 22 Mar 2004 05:58:30 -0600 (CST) Date: Mon, 22 Mar 2004 05:58:30 -0600 From: Vincent Stemen To: zsh-users@sunsite.dk Subject: Re: syntax overview for zsh? Message-ID: <20040322115830.GA12890@quark.hightek.org> References: <4tgdwh9stgna$.dlg@thorstenkampe.de> <20040322055359.7487.qmail@web12406.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040322055359.7487.qmail@web12406.mail.yahoo.com> User-Agent: Mutt/1.4.1i X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: * X-Spam-Status: No, hits=1.0 required=6.0 tests=RCVD_IN_SORBS autolearn=no version=2.63 X-Spam-Hits: 1.0 On Sun, Mar 21, 2004 at 09:53:58PM -0800, Bob Schmertz wrote: > > --- Thorsten Kampe wrote: > > >> If anyone else has a vim or X(Emacs) syntax highlighter I'd be > > >> grateful, too. > > > > > > I'm not a major-league zsh programmer, so I may well be ignorant, but > > > what's wrong with good-old shell-script mode in (X)Emacs? > > > > Nothing, if I could find the defining syntax file. Nothing like > > "sh.el" on my Gentoo box (where I have XEmacs). > > > > If you just want to use it as is, just type M-x shell-script-mode (tab > completion works here, too), and it'll put you in Emacs' proper mode. If > you want to tweak the syntax, the appropriate elisp file is the > non-obvious sh-script.el. If you want to know how to make it > automatically detect zsh-ness and it's not already doing so (works for me > with no special effort in GNU Emacs if the file starts with #!/bin/zsh), > email me offline and I'll tell you what to put in your .emacs. > > ===== > Cheers, > Bob Schmertz You might also want to try ksh-mode in Xemacs which has pretty nice syntax highlighting and it auto-indents nicely. Although I did customize my indention a bit in ~/.emacs. That is what I have used for shell programming for years. I do not like the default indention behavior of shell-script-mode. It indents everything even though it is not inside a function or control block and it does not seem to re-indent when you hit the key. It just indents further. -- Vincent Stemen Avoid the VeriSign/Network Solutions domain registration trap! http://www.InetAddresses.net