summaryrefslogtreecommitdiffhomepage
path: root/email.org
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-11-03 03:38:53 +0000
committerjao <jao@gnu.org>2021-11-03 03:38:53 +0000
commitee9789c061998abb810974d1a27ef90026db8eba (patch)
tree6bce095a5f69de54b0d739c2e4b83b7c0d6ebba0 /email.org
parentda63d0e99d1a3dda4457a8e4c285f3a834e26b7c (diff)
downloadelibs-ee9789c061998abb810974d1a27ef90026db8eba.tar.gz
elibs-ee9789c061998abb810974d1a27ef90026db8eba.tar.bz2
experimenting with eww as main browser again
Diffstat (limited to 'email.org')
-rw-r--r--email.org15
1 files changed, 15 insertions, 0 deletions
diff --git a/email.org b/email.org
index ca16c09..a9bc09c 100644
--- a/email.org
+++ b/email.org
@@ -207,6 +207,21 @@
'((jao-icalendar-import-buffer "application/ics")
("viewpdf.sh %s" "application/pdf")))))
#+end_src
+* multipart html renderer
+ #+begin_src emacs-lisp
+
+ (defun jao-w3m-html-renderer (handle)
+ (let ((w3m-message-silent t)
+ (mm-w3m-safe-url-regexp nil))
+ (condition-case nil
+ (mm-inline-text-html-render-with-w3m handle)
+ (error (delete-region (point) (point-max))
+ (let ((shr-use-fonts nil)
+ (shr-use-colors nil))
+ (mm-shr handle))))))
+
+ ;; (setq mm-text-html-renderer #'jao-w3m-html-renderer)
+ #+end_src
* bbdb
#+begin_src emacs-lisp
(use-package bbdb