From 59409f409d4e20b6657e8c278dba9bf403c5ebd9 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 23 Mar 2017 11:34:27 -0600 Subject: [PATCH] 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. --- lisp/files.el | 6 +++--- lisp/net/eww.el | 7 +++++-- 2 files changed, 8 insertions(+), 5 deletions(-) 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) - ("