# HG changeset patch # User Richard M. Stallman # Date 789088056 0 # Node ID b18a4ff30816a00d2645cc21025c140df1232ca5 # Parent dad32dba58bf71df7d50765f3338a092b23780f4 (tex-mode): \begin at start of file implies Latex. diff -r dad32dba58bf -r b18a4ff30816 lisp/textmodes/tex-mode.el --- a/lisp/textmodes/tex-mode.el Mon Jan 02 23:01:16 1995 +0000 +++ b/lisp/textmodes/tex-mode.el Mon Jan 02 23:07:36 1995 +0000 @@ -263,7 +263,7 @@ (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