SGML: Emacs changes for dsssl-mode

Emacs changes for dsssl-mode

Two postings relative to DSSSL editing under emacs:

From Sat Apr 12 13:49:08 1997
Date: Sat, 12 Apr 1997 19:46:55 +0100
From: Dave Love <>
Subject: Emacs changes for dsssl-mode available

  [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
<> 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 Sat Apr 12 15:08:56 1997
Date: Sat, 12 Apr 1997 16:06:14 -0400
From: David Megginson <>
Subject: Emacs changes for dsssl-mode available

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

  ;; Use Scheme mode for DSSSL files.
  (setq auto-mode-alist
	(append (list (cons "\\.dss?s?l$" 'scheme-mode))

It will be nice, though, to have a proper configuration built-into

All the best,


David Megginson       
Microstar Software Ltd.
University of Ottawa