From: Richard M. Stallman Date: Mon, 2 Jan 1995 23:07:36 +0000 (+0000) Subject: (tex-mode): \begin at start of file implies Latex. X-Git-Tag: emacs-19.34~5538 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e4d02e0473af317a8c49fc91903297f407614c36;p=emacs.git (tex-mode): \begin at start of file implies Latex. --- diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index ac8592e69ae..e52cb73964f 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") + (setq mode (if (looking-at "documentstyle\\|documentclass\\|begin\\b") (if (looking-at "document\\(style\\|class\\)\\(\\[.*\\]\\)?{slides}") 'slitex-mode