Commit 98b29a3e authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(tex-mode): Accept documentclass when checking Slitex.

parent 1ae2097f
...@@ -262,7 +262,7 @@ says which mode to use." ...@@ -262,7 +262,7 @@ says which mode to use."
(search-forward "%" search-end t)))))) (search-forward "%" search-end t))))))
(if (and slash (not comment)) (if (and slash (not comment))
(setq mode (if (looking-at "documentstyle\\|documentclass") (setq mode (if (looking-at "documentstyle\\|documentclass")
(if (looking-at "documentstyle{slides}") (if (looking-at "documentstyle{slides}\\|documentclass{slides}")
'slitex-mode 'slitex-mode
'latex-mode) 'latex-mode)
'plain-tex-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