1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-28 07:45:00 +00:00

(sgml-mode): Set imenu-generic-expression.

This commit is contained in:
Karl Heuer 1997-12-04 04:20:34 +00:00
parent 54e7fabaf3
commit ec79b93a14

View File

@ -369,6 +369,11 @@ Do \\[describe-key] on the following bindings to discover what they do.
\\{sgml-mode-map}"
(interactive)
(sgml-mode-common sgml-tag-face-alist sgml-display-text)
;; Set imenu-generic-expression here, rather than in sgml-mode-common,
;; because this definition probably is not useful in HTML mode.
(make-local-variable 'imenu-generic-expression)
(setq imenu-generic-expression
"<!\\(element\\|entity\\)[ \t\n]+%?[ \t\n]*\\([A-Za-z][-A-Za-z.0-9]*\\)")
(use-local-map sgml-mode-map)
(setq mode-name "SGML"
major-mode 'sgml-mode))