summaryrefslogtreecommitdiffhomepage
path: root/w3m.org
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-07-11 22:10:58 +0100
committerjao <jao@gnu.org>2021-07-11 22:11:29 +0100
commite23cd6e357938d0982db094d3e3682e5f66c5f9a (patch)
tree6aa5488050c0b127bd402d674cbfb3d300b52f8d /w3m.org
parentc0bfb3f4e61b148e5f02b46f004d7253867fe2af (diff)
downloadelibs-e23cd6e357938d0982db094d3e3682e5f66c5f9a.tar.gz
elibs-e23cd6e357938d0982db094d3e3682e5f66c5f9a.tar.bz2
gnus, notably gnus-refer-thread-use-search
Diffstat (limited to 'w3m.org')
-rw-r--r--w3m.org13
1 files changed, 12 insertions, 1 deletions
diff --git a/w3m.org b/w3m.org
index ef1b105..da05463 100644
--- a/w3m.org
+++ b/w3m.org
@@ -69,7 +69,18 @@
#+end_src
* Email
#+begin_src emacs-lisp
- (setq mm-text-html-renderer 'w3m)
+ (defun jao-w3m-gnus-html-renderer (handle)
+ (let ((w3m-message-silent t)
+ (mm-w3m-safe-url-regexp nil)
+ (shr-use-colors nil)
+ (shr-use-fonts nil)
+ (fill-column (min (window-width) 110)))
+ (condition-case nil
+ (mm-inline-text-html-render-with-w3m handle)
+ (error (delete-region (point) (point-max))
+ (mm-shr handle)))))
+
+ (setq mm-text-html-renderer #'jao-w3m-gnus-html-renderer)
#+end_src
* Narrowing
#+begin_src emacs-lisp