Mercurial > emacs
diff lisp/textmodes/tex-mode.el @ 8553:090fb6dea9dd
(tex-mode): Allow for documentclass options when checking for SliTeX.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 17 Aug 1994 20:30:22 +0000 |
parents | 03938bbc5bbb |
children | 30d1c79f19b6 |
line wrap: on
line diff
--- a/lisp/textmodes/tex-mode.el Wed Aug 17 20:06:55 1994 +0000 +++ b/lisp/textmodes/tex-mode.el Wed Aug 17 20:30:22 1994 +0000 @@ -262,7 +262,8 @@ (search-forward "%" search-end t)))))) (if (and slash (not comment)) (setq mode (if (looking-at "documentstyle\\|documentclass") - (if (looking-at "documentstyle{slides}\\|documentclass{slides}") + (if (looking-at + "document\\(style\\|class\\)\\(\\[.*\\]\\)?{slides}") 'slitex-mode 'latex-mode) 'plain-tex-mode))))