[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: opening local files with arbitrary extensions as HTML
>>>>> Katsumi Yamaoka wrote:
> For Eduardo Ochs, I'm going to look for another way.
Isn't it sufficient for your purpose?
--8<---------------cut here---------------start------------->8---
(setq w3m-local-find-file-regexps '(nil ""))
(defadvice w3m-create-page (before make-type-defaut-to-text/html activate)
"Make the TYPE argument default to text/html."
(unless (and (stringp (ad-get-arg 1))
(assoc (ad-get-arg 1) w3m-content-type-alist))
(ad-set-arg 1 "text/html")))
--8<---------------cut here---------------end--------------->8---