summaryrefslogtreecommitdiffhomepage
path: root/custom/jao-custom-eww.el
diff options
context:
space:
mode:
Diffstat (limited to 'custom/jao-custom-eww.el')
-rw-r--r--custom/jao-custom-eww.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/custom/jao-custom-eww.el b/custom/jao-custom-eww.el
index beeb97e..c388437 100644
--- a/custom/jao-custom-eww.el
+++ b/custom/jao-custom-eww.el
@@ -24,9 +24,10 @@
;;; multipart html renderer
(defun jao-shr-html-renderer (handle)
- (let ((fill-column nil)
- (shr-width 150)
- (shr-max-width 150))
+ (let* ((w (min 150 (- (window-width) 10)))
+ (fill-column nil)
+ (shr-width w)
+ (shr-max-width w))
(mm-shr handle)))
(setq mm-text-html-renderer #'jao-shr-html-renderer)