[mew-int 3143] Re: Suggested method for reading HTML in Emacs?
Christophe TROESTLER <[email protected]> Fri, 19 Apr 2013 08:46:32 +0200
| Newsgroups | gmane.mail.mew.general |
|---|---|
| Organization | Universite de Mons (http://math.umons.ac.be/anum/) |
| Message-ID | <20130419.084632.1438599840328732666.Christophe.Troestler@umons.ac.be> |
On Thu, 18 Apr 2013 18:14:35 +0200, Petter Gustad wrote:
>
>
> What is the suggested method/setup to read HTML multiparts in an Emacs
> frame?
>
> I'm using Emacs 24.2.1 and Mew 6.5.
You need to install w3m and add something like the following to your
~/.emacs.d/init.el
(if (locate-library "mew-w3m")
(progn
(require 'w3m)
(require 'mew-w3m)
(setq mew-use-text/html t); decode HTML
(setq mew-use-text/html-list nil)
;; Choose HTML by default (many broken mailers out there...)
(setq mew-mime-multipart-alternative-list
'("Text/Html" "Text/Plain" ".*"))
;; Bad "Apple Mail" attachments in multiplart/alternative; work
;; around that:
(setq mew-disable-alternative-regex-list '("Apple Mail"))
(setq mew-use-w3m-minor-mode t)
(add-hook 'mew-message-hook 'mew-w3m-minor-mode-setter)
))