changeset 8474:03938bbc5bbb

(tex-mode): Accept documentclass when checking Slitex.
author Richard M. Stallman <rms@gnu.org>
date Sun, 07 Aug 1994 06:47:57 +0000
parents c285c3b0ea54
children 77d5e055dce1
files lisp/textmodes/tex-mode.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/tex-mode.el	Sun Aug 07 06:40:55 1994 +0000
+++ b/lisp/textmodes/tex-mode.el	Sun Aug 07 06:47:57 1994 +0000
@@ -262,7 +262,7 @@
 				    (search-forward "%" search-end t))))))
       (if (and slash (not comment))
 	  (setq mode (if (looking-at "documentstyle\\|documentclass")
-                         (if (looking-at "documentstyle{slides}")
+                         (if (looking-at "documentstyle{slides}\\|documentclass{slides}")
                              'slitex-mode
                            'latex-mode)
 		       'plain-tex-mode))))