]> git.eshelyaron.com Git - emacs.git/commitdiff
(tex-mode): Accept documentclass when checking Slitex.
authorRichard M. Stallman <rms@gnu.org>
Sun, 7 Aug 1994 06:47:57 +0000 (06:47 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 7 Aug 1994 06:47:57 +0000 (06:47 +0000)
lisp/textmodes/tex-mode.el

index c8f6b53c83845e6530f3d78ccf10a8a3fb867da6..00518f8578baba0aeea3b0cf3c4c488396179426 100644 (file)
@@ -262,7 +262,7 @@ says which mode to use."
                                    (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))))