Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: syntax overview for zsh?
- X-seq: zsh-users 7223
- From: Bob Schmertz <rschmertz@xxxxxxxxx>
- To: Thorsten Kampe <thorsten@xxxxxxxxxxxxxxxx>, zsh-users@xxxxxxxxxx
- Subject: Re: syntax overview for zsh?
- Date: Sun, 21 Mar 2004 21:53:58 -0800 (PST)
- In-reply-to: <4tgdwh9stgna$.dlg@xxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Reply-to: robert.schmertz@xxxxxxxxxxxxxxxx
--- Thorsten Kampe <thorsten@xxxxxxxxxxxxxxxx> 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
__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html
Messages sorted by:
Reverse Date,
Date,
Thread,
Author