diff options
author | Richard M. Stallman <rms@gnu.org> | 1995-01-03 22:28:50 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1995-01-03 22:28:50 +0000 |
commit | 0bc3ca97012fb4fe68acd4cad00051caa0f34fed (patch) | |
tree | 8b346be5e9bfe553d94a2be4a97e19edcd6be700 /lisp/textmodes/tex-mode.el | |
parent | 96691503a58dd89d230507a3480bd560140161d2 (diff) | |
download | emacs-0bc3ca97012fb4fe68acd4cad00051caa0f34fed.tar.gz |
(tex-mode): Recognize \NeedsTeXFormat{LaTeX2e}.
Diffstat (limited to 'lisp/textmodes/tex-mode.el')
-rw-r--r-- | lisp/textmodes/tex-mode.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index e52cb73964f..953b3d29ac7 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el @@ -263,7 +263,7 @@ says which mode to use." (beginning-of-line) (search-forward "%" search-end t)))))) (if (and slash (not comment)) - (setq mode (if (looking-at "documentstyle\\|documentclass\\|begin\\b") + (setq mode (if (looking-at "documentstyle\\|documentclass\\|begin\\b\\|NeedsTeXFormat{LaTeX") (if (looking-at "document\\(style\\|class\\)\\(\\[.*\\]\\)?{slides}") 'slitex-mode |