Subject: Re: Emacs, psgml, fonts 'n stuff
To: None <netbsd-users@netbsd.org>
From: Bob Bernstein <poobah@ruptured-duck.com>
List: netbsd-users
Date: 02/25/2001 14:06:04
Since one of the things I really hate is to find a question posted in an
email list archive, but not find the freakin' *answer* there because people
think they are saving bandwidth or something by answering via private email
or something:
On Sat, Feb 24, 2001 at 07:57:17PM -0500, Bob Bernstein wrote:
> 1) Are not saved parsed DTDs (those *.ced files) supposed to be autoloaded
> when their respective .sgml files are loaded into the editor?
Duh Bob; rtfm.
(setq sgml-auto-activate-dtd t)
> 2) I cannot get colorized font-lock-mode in sgml files.
It must be defined as a customization and you were spoiled by a Debian
package that contained such a thing. It looks something like this (thanks
Manoj):
--- snip ---
;;;;;;;;;;;;;;;;;;;;;;;;;;; -*- Mode: Emacs-Lisp -*- ;;;;;;;;;;;;;;;;;;;;;;;;;;
;; example-customization.el ---
;; Author : Manoj Srivastava ( srivasta@tiamat.datasync.com )
;; Created On : Wed Nov 5 12:56:18 1997
;; Created On Node : tiamat.datasync.com
;; Last Modified By : Manoj Srivastava
;; Last Modified On : Wed Nov 5 12:56:57 1997
;; Last Machine Used: tiamat.datasync.com
;; Update Count : 1
;; Status : Unknown, Use with caution!
;; HISTORY :
;; Description :
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(setq-default sgml-set-face t)
;;
;; Faces.
;;
(make-face 'sgml-comment-face)
(make-face 'sgml-doctype-face)
(make-face 'sgml-end-tag-face)
(make-face 'sgml-entity-face)
(make-face 'sgml-ignored-face)
(make-face 'sgml-ms-end-face)
(make-face 'sgml-ms-start-face)
(make-face 'sgml-pi-face)
(make-face 'sgml-sgml-face)
(make-face 'sgml-short-ref-face)
(make-face 'sgml-start-tag-face)
(set-face-foreground 'sgml-comment-face "dark green")
(set-face-foreground 'sgml-doctype-face "maroon")
(set-face-foreground 'sgml-end-tag-face "blue2")
(set-face-foreground 'sgml-entity-face "red2")
(set-face-foreground 'sgml-ignored-face "maroon")
(set-face-background 'sgml-ignored-face "gray90")
(set-face-foreground 'sgml-ms-end-face "maroon")
(set-face-foreground 'sgml-ms-start-face "maroon")
(set-face-foreground 'sgml-pi-face "maroon")
(set-face-foreground 'sgml-sgml-face "maroon")
(set-face-foreground 'sgml-short-ref-face "goldenrod")
(set-face-foreground 'sgml-start-tag-face "blue2")
(setq-default sgml-markup-faces
'((comment . sgml-comment-face)
(doctype . sgml-doctype-face)
(end-tag . sgml-end-tag-face)
(entity . sgml-entity-face)
(ignored . sgml-ignored-face)
(ms-end . sgml-ms-end-face)
(ms-start . sgml-ms-start-face)
(pi . sgml-pi-face)
(sgml . sgml-sgml-face)
(short-ref . sgml-short-ref-face)
(start-tag . sgml-start-tag-face)))
--- snip ---
> Caveat: For all I know at this stage of the game these are emacs/psgml
> specific problems and so this question is really OT;
Guilty as charged.
--
Bob Bernstein
at
Esmond, R.I., USA