
我找到的唯一解决方案是在EmacsWiki中,但这是1996年的代码,对我来说不起作用.至少在Emacs 24上.
解决方法 好.这个怎么样?(defun buffer-HTML-to-w3m () "VIEw HTML in the current rmail using W3M.You must have W3M installed for this to work." (interactive) (let ((subject (mail-fetch-fIEld "Subject"))) (when (string-match-p "text/HTML.*" (mail-fetch-fIEld "Content-type")) (save-excursion (goto-char (point-min)) (let ((pt (re-search-forward "\n<HTML>" nil t))) (goto-char pt) (let ((buf (get-buffer-create (concat "*rmail-" subject "*")))) (shell-command-on-region pt (or (re-search-forward "</HTML>" nil t) (point-max)) "w3m -T text/HTML" buf) (switch-to-buffer-other-window buf) (vIEw-mode)))))))
我不确定这个名字,我只试过你的一封电子邮件,但对我来说,这是有效的.
我把你的消息放到rmail-mode然后写了这个函数,它找到了HTML并通过W3M管道它.
您已切换到生成的缓冲区,我们将其置于视图模式,因此您只需“q”即可停止查看它.
总结以上是内存溢出为你收集整理的email – 我如何使用w3m在RMAIL消息中呈现HTML内容?全部内容,希望文章能够帮你解决email – 我如何使用w3m在RMAIL消息中呈现HTML内容?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)