Commit 0edb9815 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(tex-mode): Allow for documentclass options when checking for SliTeX.

parent a1943c34
......@@ -262,7 +262,8 @@ says which mode to use."
(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))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment