From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21666 invoked from network); 23 Mar 2004 06:07:12 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 23 Mar 2004 06:07:12 -0000 Received: (qmail 11143 invoked by alias); 23 Mar 2004 06:06:57 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7236 Received: (qmail 11079 invoked from network); 23 Mar 2004 06:06:56 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 23 Mar 2004 06:06:56 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [130.225.247.86] by sunsite.dk (MessageWall 1.0.8) with SMTP; 23 Mar 2004 6:6:56 -0000 Received: (qmail 24671 invoked from network); 23 Mar 2004 06:06:56 -0000 Received: from web12408.mail.yahoo.com (216.136.173.135) by a.mx.sunsite.dk with SMTP; 23 Mar 2004 06:06:47 -0000 Message-ID: <20040323052829.17803.qmail@web12408.mail.yahoo.com> Received: from [66.92.171.57] by web12408.mail.yahoo.com via HTTP; Mon, 22 Mar 2004 21:28:29 PST Date: Mon, 22 Mar 2004 21:28:29 -0800 (PST) From: Bob Schmertz Reply-To: robert.schmertz@terpalum.umd.edu Subject: Re: syntax overview for zsh? To: Vincent Stemen , zsh-users@sunsite.dk In-Reply-To: <20040322115830.GA12890@quark.hightek.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63 X-Spam-Hits: 0.0 --- Vincent Stemen wrote: > 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. > This sounds like the behavior I observe when programming in (t)csh. Things work fine for me, however, for Bourne-style shells in GNU Emacs (I don't have an XEmacs handy for comparison), and ISTR that there was some improvement on this front fairly recently, so you might give GNU Emacs v. 21 a whirl before declaring it doesn't work. ===== Cheers, Bob Schmertz __________________________________ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html