mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-28 07:45:00 +00:00
(tex-mode): Allow for documentclass options when checking for SliTeX.
This commit is contained in:
parent
a1943c34bb
commit
0edb981589
@ -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))))
|
||||
|
Loading…
Reference in New Issue
Block a user