|
Revision 3, 1.2 KB
(checked in by tkg, 3 years ago)
|
|
tdtd Emacs mode for DTDs.
|
| Line | |
|---|
| 1 | ;; $Id: dot_emacs,v 1.6 2001-08-12 21:19:52-04 tkg Exp $
|
|---|
| 2 |
|
|---|
| 3 | ;; DTD mode
|
|---|
| 4 | (autoload 'dtd-mode "tdtd" "Major mode for SGML and XML DTDs." t)
|
|---|
| 5 | (autoload 'dtd-etags "tdtd"
|
|---|
| 6 | "Execute etags on FILESPEC and match on DTD-specific regular expressions."
|
|---|
| 7 | t)
|
|---|
| 8 | (autoload 'dtd-grep "tdtd" "Grep for PATTERN in files matching FILESPEC." t)
|
|---|
| 9 |
|
|---|
| 10 | ;; Turn on font lock when in DTD mode
|
|---|
| 11 | (add-hook 'dtd-mode-hooks
|
|---|
| 12 | 'turn-on-font-lock)
|
|---|
| 13 |
|
|---|
| 14 | (setq auto-mode-alist
|
|---|
| 15 | (append
|
|---|
| 16 | (list
|
|---|
| 17 | '("\\.dcl$" . dtd-mode)
|
|---|
| 18 | '("\\.dec$" . dtd-mode)
|
|---|
| 19 | '("\\.dtd$" . dtd-mode)
|
|---|
| 20 | '("\\.ele$" . dtd-mode)
|
|---|
| 21 | '("\\.ent$" . dtd-mode)
|
|---|
| 22 | '("\\.mod$" . dtd-mode))
|
|---|
| 23 | auto-mode-alist))
|
|---|
| 24 |
|
|---|
| 25 | ;;;; Windows users who are not using a Unix-like shell should uncomment
|
|---|
| 26 | ;;;; the following variable definition:
|
|---|
| 27 | ;;(defvar dtd-etags-regex-option
|
|---|
| 28 | ;; "--regex=\"/<!\\(ELEMENT\\|ENTITY[ \\t]+%%\\|NOTATION\\|ATTLIST\\)[ \\t]+\\([^ \\t]+\\)/\\2/\""
|
|---|
| 29 | ;; "*Complete, including \"--regex=\", etags regular expression option string
|
|---|
| 30 | ;;for the etags command line for extracting tags (in the Emacs sense)
|
|---|
| 31 | ;;from DTDs.")
|
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 | ;; To use resize-minibuffer-mode, uncomment this and include in your .emacs:
|
|---|
| 35 | ;;(resize-minibuffer-mode)
|
|---|