终于解决了,不是
shr-inhibit-images
的问题。在wanderlust中使用
shr
显示图片需要设置:
(setq mime-shr-blocked-images nil)
,使用w3m显示图片需要设置:
(defun my-wanderlust/post-init-w3m ()
(use-package w3m
:if wanderlust-enable-w3m-view
:init
(progn
(use-package mime-w3m
:defer t
:init
(progn
(setq mime-w3m-safe-url-regexp nil))))))
在wanderlust如下设置:
(use-package mime-setup
:defer t
:init
(cond ((and wanderlust-enable-w3m-view
(executable-find "w3m")
(configuration-layer/layer-used-p 'my-w3m)
(configuration-layer/package-used-p 'w3m))
(setq mime-view-text/html-previewer 'w3m
mime-setup-enable-inline-html 'w3m
mime-setup-enable-inline-image t))
((and wanderlust-enable-eww-view
(configuration-layer/layer-used-p 'my-eww)
(configuration-layer/package-used-p 'eww))
(setq mime-view-text/html-previewer 'shr
mime-setup-enable-inline-html 'shr
mime-shr-blocked-images nil
mime-setup-enable-inline-image t))))