From b973591d73eb76a2e95c6175a0af15b5f11e82c4 Mon Sep 17 00:00:00 2001 From: jao Date: Wed, 5 Nov 2025 18:21:45 +0000 Subject: uniform shr remderer --- custom/jao-custom-eww.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'custom/jao-custom-eww.el') diff --git a/custom/jao-custom-eww.el b/custom/jao-custom-eww.el index dda2de9..30dbdf9 100644 --- a/custom/jao-custom-eww.el +++ b/custom/jao-custom-eww.el @@ -23,8 +23,10 @@ (setq eww-use-browse-url "^\\(gemini\\|gopher\\):") ;;; multipart html renderer +(defvar jao-shr-max-width 110) + (defun jao-shr-html-renderer (handle) - (let* ((w (min 10ai0 (- (window-width) 10))) + (let* ((w (min jao-shr-max-width (- (window-width) 10))) (fill-column nil) (shr-width w) (shr-max-width w)) -- cgit v1.2.3