From: Tom Tromey Date: Thu, 23 Mar 2017 17:34:27 +0000 (-0600) Subject: enable mhtml-mode by default X-Git-Tag: emacs-26.0.90~521^2~712 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=59409f409d4e20b6657e8c278dba9bf403c5ebd9;p=emacs.git enable mhtml-mode by default * lisp/files.el (auto-mode-alist): Reference mhtml-mode, not html-mode. (magic-fallback-mode-alist): Likewise. * lisp/net/eww.el (eww-view-source): Use mthml-mode. --- diff --git a/lisp/files.el b/lisp/files.el index 204c26416a6..6848818cad1 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -2429,7 +2429,7 @@ since only a single case-insensitive search through the alist is made." (lambda (elt) (cons (purecopy (car elt)) (cdr elt))) `(;; do this first, so that .html.pl is Polish html, not Perl - ("\\.[sx]?html?\\(\\.[a-zA-Z_]+\\)?\\'" . html-mode) + ("\\.[sx]?html?\\(\\.[a-zA-Z_]+\\)?\\'" . mhtml-mode) ("\\.svgz?\\'" . image-mode) ("\\.svgz?\\'" . xml-mode) ("\\.x[bp]m\\'" . image-mode) @@ -2791,8 +2791,8 @@ If FUNCTION is nil, then it is not called. (That is a way of saying comment-re "*" "\\(?:!DOCTYPE[ \t\r\n]+[^>]*>[ \t\r\n]*<[ \t\r\n]*" comment-re "*\\)?" "[Hh][Tt][Mm][Ll]")) - . html-mode) - ("