(tex-mode): Recognize \NeedsTeXFormat{LaTeX2e}.
authorRichard M. Stallman <rms@gnu.org>
Tue, 3 Jan 1995 22:28:50 +0000 (22:28 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 3 Jan 1995 22:28:50 +0000 (22:28 +0000)
lisp/textmodes/tex-mode.el

index e52cb73..953b3d2 100644 (file)
@@ -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