zsh-users
 help / color / mirror / code / Atom feed
* Zsh-script-mode for emacs?
@ 2000-07-19 16:13 Juhapekka Tolvanen
  2000-07-19 19:00 ` Chmouel Boudjnah
  2000-07-19 19:27 ` Bart Schaefer
  0 siblings, 2 replies; 4+ messages in thread
From: Juhapekka Tolvanen @ 2000-07-19 16:13 UTC (permalink / raw)
  To: zsh-users


Does someone know any good elisp-file that would implement major mode for
editing of zsh-scripts with emacs? Even vi-clone called Vim has own mode for
Zsh, but emacs does not have it, yet.

Or how about creating one? Maybe it could be based on ksh-mode, that comes
with XEmacs. Here is its first lines:

;; ksh-mode.el --- sh (ksh, bash) script editing mode for GNU Emacs.

;; Copyright (C) 1992-1999 Gary Ellison.

;; This file is compatible with GNU Emacs but is not part of the official
;; distribution.
;;
;; This program is free software; you can redistribute it and/or modify
;; it at your option.
;;   
;; Gary Ellison makes no representations about the suitability
;; of this software for any purpose.  It is provided "as is" without
;; express or implied warranty.
;;
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

;; $Source:
/usr/CVSroot/XEmacs/xemacs-packages/prog/prog-modes/ksh-mode.el,v $ 
--  
;;
;; LCD Archive Entry:
;; ksh-mode|Gary Ellison|gfe@interhack.net
;; |Mode for editing sh/ksh/bash scripts
;; |$Date: 1999/11/27 16:26:01 $|$Revision: 1.3 $|~/modes/ksh-mode.el.Z|

;; Author: Gary Ellison <gfe@interhack.net>
;;                   Interhack Posse
;;
;; Maintainer: Gary Ellison <gfe@interhack.net>
;; Created: Fri Jun 19
;; $Revision: 1.3 $
;; Keywords: shell, korn, bourne, sh, ksh, bash
;;
;; Delta On   $Date: 1999/11/27 16:26:01 $
;; Last Modified By: Gary Ellison
;; Status          : Highly Functional
;;

;;; Commentary:

;;
;; Description:
;;   sh, ksh, and bash script editing commands for emacs.
;; 

P.S: I do not subscribe to this list, but I am smart enough to read mailing
list archives via WWW. But you can Cc: to me, if you want.

-- 
Juhapekka "naula" Tolvanen * U of Jyväskylä * juhtolv@st.jyu.fi
http://www.cc.jyu.fi/~juhtolv/ * * "STRAIGHT BUT NOT NARROW !!" 
---------------------------------------------------------------
"if i was twice the man i could be, i'd still be half of what
you need"                                       Nine Inch Nails


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Zsh-script-mode for emacs?
  2000-07-19 16:13 Zsh-script-mode for emacs? Juhapekka Tolvanen
@ 2000-07-19 19:00 ` Chmouel Boudjnah
  2000-07-19 19:27 ` Bart Schaefer
  1 sibling, 0 replies; 4+ messages in thread
From: Chmouel Boudjnah @ 2000-07-19 19:00 UTC (permalink / raw)
  To: Juhapekka Tolvanen; +Cc: zsh-users

Juhapekka Tolvanen <juhtolv@st.jyu.fi> writes:

> Does someone know any good elisp-file that would implement major mode for
> editing of zsh-scripts with emacs? Even vi-clone called Vim has own mode for
> Zsh, but emacs does not have it, yet.
> 
> Or how about creating one? Maybe it could be based on ksh-mode, that comes
> with XEmacs. Here is its first lines:

sh-script.el  from GNU/Emacs 20.6 support zsh (try C-c : zsh)

-- 
MandrakeSoft Inc                http://www.mandrakesoft.com
San-Francisco, CA USA                             --Chmouel


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Zsh-script-mode for emacs?
  2000-07-19 16:13 Zsh-script-mode for emacs? Juhapekka Tolvanen
  2000-07-19 19:00 ` Chmouel Boudjnah
@ 2000-07-19 19:27 ` Bart Schaefer
  2000-07-19 20:06   ` Kevin Sullivan
  1 sibling, 1 reply; 4+ messages in thread
From: Bart Schaefer @ 2000-07-19 19:27 UTC (permalink / raw)
  To: Juhapekka Tolvanen, zsh-users

On Jul 19,  7:13pm, Juhapekka Tolvanen wrote:
> Subject: Zsh-script-mode for emacs?
> 
> Does someone know any good elisp-file that would implement major mode for
> editing of zsh-scripts with emacs? Even vi-clone called Vim has own mode for
> Zsh, but emacs does not have it, yet.

If you investigate shell-script-mode in recent versions of GNU emacs, you'll
find that it does in fact classify zsh as a derivative of ksh88 and attempt
to handle it that way (e.g. it'll recognize #!/bin/zsh and automatically
start shell-script-mode, etc.)  It's got most of the list of keywords right,
knows how to insert loop skeletons, etc.

I have no idea whether XEmacs has this yet.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Zsh-script-mode for emacs?
  2000-07-19 19:27 ` Bart Schaefer
@ 2000-07-19 20:06   ` Kevin Sullivan
  0 siblings, 0 replies; 4+ messages in thread
From: Kevin Sullivan @ 2000-07-19 20:06 UTC (permalink / raw)
  To: schaefer; +Cc: juhtolv, zsh-users

Bart Schaefer writes:
> On Jul 19,  7:13pm, Juhapekka Tolvanen wrote:
> > Subject: Zsh-script-mode for emacs?
> > 
> > Does someone know any good elisp-file that would implement major mode for
> > editing of zsh-scripts with emacs? Even vi-clone called Vim has own mode for
> > Zsh, but emacs does not have it, yet.
> 
> If you investigate shell-script-mode in recent versions of GNU emacs, you'll
> find that it does in fact classify zsh as a derivative of ksh88 and attempt
> to handle it that way (e.g. it'll recognize #!/bin/zsh and automatically
> start shell-script-mode, etc.)  It's got most of the list of keywords right,
> knows how to insert loop skeletons, etc.
> 
> I have no idea whether XEmacs has this yet.


Yes in fact XEmacs does automaticly start shell-script-mode when
loading a zsh script with '#!/bin/zsh'.

 -Kevin Sullivan


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-07-19 20:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-19 16:13 Zsh-script-mode for emacs? Juhapekka Tolvanen
2000-07-19 19:00 ` Chmouel Boudjnah
2000-07-19 19:27 ` Bart Schaefer
2000-07-19 20:06   ` Kevin Sullivan

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).