summaryrefslogtreecommitdiffhomepage
path: root/custom/jao-custom-eww.el
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-08-06 20:17:20 +0100
committerjao <jao@gnu.org>2022-08-06 20:17:20 +0100
commitb889be5a91b968d8364152e6691d5b08757fefe9 (patch)
treee6928ef8b8c48748b3ac3bf83f2f7aec2770703f /custom/jao-custom-eww.el
parent60a3242c244766bedba491e1fc1365c4188aa132 (diff)
downloadelibs-b889be5a91b968d8364152e6691d5b08757fefe9.tar.gz
elibs-b889be5a91b968d8364152e6691d5b08757fefe9.tar.bz2
nits
Diffstat (limited to 'custom/jao-custom-eww.el')
-rw-r--r--custom/jao-custom-eww.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/custom/jao-custom-eww.el b/custom/jao-custom-eww.el
index 6902285..dc643fb 100644
--- a/custom/jao-custom-eww.el
+++ b/custom/jao-custom-eww.el
@@ -20,6 +20,14 @@
(setq jao-browse-url-function #'jao-eww-browse-url)
(setq eww-use-browse-url "^\\(gemini\\|gopher\\):")
+;;; multipart html renderer
+(defun jao-shr-html-renderer (handle)
+ (let ((fill-column nil)
+ (shr-width fill-column))
+ (mm-shr handle)))
+
+(setq mm-text-html-renderer #'jao-shr-html-renderer)
+
;;; Opening URLs
(defun jao-eww-copy-link ()
(interactive)