Two postings relative to DSSSL editing under emacs:
-------------------------------------------------------------------
From dssslist-owner@mulberrytech.com Sat Apr 12 13:49:08 1997
Date: Sat, 12 Apr 1997 19:46:55 +0100
From: Dave Love <d.love@dl.ac.uk>
Subject: Emacs changes for dsssl-mode available
Sender: dssslist-owner@mulberrytech.com
To: dssslist@mulberrytech.com
[The following message is a courtesy copy of an article
that has been posted as well.]
I've posted some changes to Emacs' scheme-mode inter alia to provide
dsssl-mode as a variant with different syntax recognition; rms has
accepted them. They're in gnu.emacs.bug at
<URL:news:199704100931.KAA05523@djlvig.dl.ac.uk> if people are
interested. (Beware that the earlier posting was a diff against the
wrong thing.) The diff should apply to any version of Emacs19; I've
no idea about XEmacs.
If anyone has suggestions for improvement it might be best to send
them through me until Emacs 19.35 comes out.
------------------------------------------------------------------
From dssslist-owner@mulberrytech.com Sat Apr 12 15:08:56 1997
Date: Sat, 12 Apr 1997 16:06:14 -0400
From: David Megginson <dmeggins@uottawa.ca>
Subject: Emacs changes for dsssl-mode available
To: dssslist@mulberrytech.com
In case anyone's interested (and is nervous about patching), you can
simply include something like the following in your ~/.emacs file to
customise Emacs for DSSSL:
;; Set up DSSSL indentation.
(put 'element 'scheme-indent-function 1)
(put 'style 'scheme-indent-function 1)
(put 'root 'scheme-indent-function 1)
(put 'make 'scheme-indent-function 1)
(put 'with-mode 'scheme-indent-function 1)
(put 'mode 'scheme-indent-function 1)
;; Make font-lock recognise more DSSSL keywords.
(setq scheme-font-lock-keywords
(cons '("(\\(make\\|element\\|style\\|mode\\|root\\|with-mode\\)[ \t\n]\\([0-9a-z.-]+\\|([^)]+)\\)"
(1 font-lock-keyword-face)
(2 font-lock-function-name-face))
scheme-font-lock-keywords))
;; Use Scheme mode for DSSSL files.
(setq auto-mode-alist
(append (list (cons "\\.dss?s?l$" 'scheme-mode))
auto-mode-alist))
It will be nice, though, to have a proper configuration built-into
Emacs.
All the best,
David
--
David Megginson ak117@freenet.carleton.ca
Microstar Software Ltd. dmeggins@microstar.com
University of Ottawa dmeggins@uottawa.ca
http://www.uottawa.ca/~dmeggins