Subject: bug#23439: 25.0.93; Please integrate eww into dired

From: Lars Ingebrigtsen <[email-masked]>
Date: Tue, 24 Jan 2017 22:49:36 +0100

Juri Linkov <[email-masked]> writes:

>> There doesn't seem to be a way to invoke eww on an HTML file from dired.
>> Perhaps "v" could be overloaded to do that?  If not, then "W" seems unused.
>
> A recommended customization in browse-url.el
> (supposing your browser-function is eww):
>
> ;;	(add-hook 'dired-mode-hook
> ;;		  (lambda ()
> ;;	             (local-set-key "\C-c\C-zf" 'browse-url-of-dired-file)))
>
> However, "v" would be shorter indeed when generalized to view files
> using mailcap to rely on their MIME types (e.g. eww for text/html, etc.)

`W' is already bound to `browse-url-of-dired-file' in dired, thereby
giving us this feature already.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no