]> git.eshelyaron.com Git - emacs.git/commitdiff
(tex-mode): \begin at start of file implies Latex.
authorRichard M. Stallman <rms@gnu.org>
Mon, 2 Jan 1995 23:07:36 +0000 (23:07 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 2 Jan 1995 23:07:36 +0000 (23:07 +0000)
lisp/textmodes/tex-mode.el

index ac8592e69ae3a490d016eaf4efde0486f05a48bf..e52cb73964f9afaf1195623458d62b99c16b3496 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")
+         (setq mode (if (looking-at "documentstyle\\|documentclass\\|begin\\b")
                          (if (looking-at
                              "document\\(style\\|class\\)\\(\\[.*\\]\\)?{slides}")
                              'slitex-mode