zsh-users
 help / color / mirror / code / Atom feed
From: Bob Schmertz <rschmertz@yahoo.com>
To: Vincent Stemen <zsh@hightek.org>, zsh-users@sunsite.dk
Subject: Re: syntax overview for zsh?
Date: Mon, 22 Mar 2004 21:28:29 -0800 (PST)	[thread overview]
Message-ID: <20040323052829.17803.qmail@web12408.mail.yahoo.com> (raw)
In-Reply-To: <20040322115830.GA12890@quark.hightek.org>


--- Vincent Stemen <zsh@hightek.org> wrote:
> On Sun, Mar 21, 2004 at 09:53:58PM -0800, Bob Schmertz wrote:
> > 
> > --- Thorsten Kampe <thorsten@thorstenkampe.de> 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 <tab> 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


  reply	other threads:[~2004-03-23  6:07 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-20 15:51 Thorsten Kampe
2004-03-20 16:04 ` Nikolai Weibull
2004-03-20 18:15   ` Thorsten Kampe
2004-03-21  5:41     ` Bob Schmertz
2004-03-21 16:02       ` Thorsten Kampe
2004-03-22  5:53         ` Bob Schmertz
2004-03-22 11:58           ` Vincent Stemen
2004-03-23  5:28             ` Bob Schmertz [this message]
2004-03-23  8:09               ` Vincent Stemen
2004-03-21 12:24     ` Nikolai Weibull
2004-03-23 18:49       ` Thorsten Kampe
2004-03-23 21:09         ` Nikolai Weibull
2004-03-22  1:14     ` Thorsten Haude

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040323052829.17803.qmail@web12408.mail.yahoo.com \
    --to=rschmertz@yahoo.com \
    --cc=robert.schmertz@terpalum.umd.edu \
    --cc=zsh-users@sunsite.dk \
    --cc=zsh@hightek.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).