I try to view image under a point in external viewer by w3m-view-image
, but when I call it I get in the *Messages*:
zsh:1: no matches found: accept_media=*/*
How can I make it working?
I use: macOS 10.15.7 Emacs 27.1.90
EDIT:
Following @lawlist guidence, I found out that the solution to the problem will probably be configuring ~/.mailcap
.
Because the main reason to have it working was to display an image in external viewer, I decided to use external browser. I ended up creating copy of w3m-view-image
function but which opens image in external browser. What's good about this is solution is, it doesn't download images into ~/.w3m
, the content is managed by external browser (Firefox in my case) instead. I set the function below to override default binding I
.
(defun farynaio/w3m-view-image-generic-browser ()
(interactive)
(let ((url (w3m-url-valid (w3m-image))))
(if url
(browse-url-generic url)
(w3m-message "No image at point"))))