Mercurial > emacs
changeset 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 | 1353c008cf8e |
children | 0b44462dbbc8 |
files | lisp/textmodes/tex-mode.el |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
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))))