diff options
| author | Tom Tromey | 2017-03-23 11:34:27 -0600 |
|---|---|---|
| committer | Tom Tromey | 2017-03-23 21:06:50 -0600 |
| commit | 349991544b12d6ad06be189b66969752f051cd4a (patch) | |
| tree | e2c48cf9b4130bc2ff688d23f5ba400b6de0775a /lisp/net | |
| parent | 23e71eba426fd2589a4b2943a5fd6075118964bf (diff) | |
| download | emacs-feature/mhtml-mode.tar.gz emacs-feature/mhtml-mode.zip | |
enable mhtml-mode by defaultfeature/mhtml-mode
* 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.
Diffstat (limited to 'lisp/net')
| -rw-r--r-- | lisp/net/eww.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/net/eww.el b/lisp/net/eww.el index 619c703e01c..fe316579142 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el | |||
| @@ -641,8 +641,11 @@ Currently this means either text/html or application/xhtml+xml." | |||
| 641 | (when (coding-system-p cs) | 641 | (when (coding-system-p cs) |
| 642 | (decode-coding-region (point-min) (point-max) cs) | 642 | (decode-coding-region (point-min) (point-max) cs) |
| 643 | (setq buffer-file-coding-system last-coding-system-used)))) | 643 | (setq buffer-file-coding-system last-coding-system-used)))) |
| 644 | (when (fboundp 'html-mode) | 644 | (cond |
| 645 | (html-mode)))) | 645 | ((fboundp 'mhtml-mode) |
| 646 | (mhtml-mode)) | ||
| 647 | ((fboundp 'html-mode) | ||
| 648 | (html-mode))))) | ||
| 646 | (view-buffer buf))) | 649 | (view-buffer buf))) |
| 647 | 650 | ||
| 648 | (defun eww-toggle-paragraph-direction () | 651 | (defun eww-toggle-paragraph-direction () |