]> git.eshelyaron.com Git - emacs.git/commitdiff
(tex-mode): Check for documentclass like documentstyle.
authorRichard M. Stallman <rms@gnu.org>
Sat, 6 Aug 1994 03:22:23 +0000 (03:22 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 6 Aug 1994 03:22:23 +0000 (03:22 +0000)
lisp/textmodes/tex-mode.el

index 103ebda9f67751402af75130849c5cf07d973d9f..c8f6b53c83845e6530f3d78ccf10a8a3fb867da6 100644 (file)
@@ -261,7 +261,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")
+         (setq mode (if (looking-at "documentstyle\\|documentclass")
                          (if (looking-at "documentstyle{slides}")
                              'slitex-mode
                            'latex-mode)