diff options
| author | jao <jao@gnu.org> | 2025-11-05 18:21:45 +0000 |
|---|---|---|
| committer | jao <jao@gnu.org> | 2025-11-05 18:21:45 +0000 |
| commit | b973591d73eb76a2e95c6175a0af15b5f11e82c4 (patch) | |
| tree | 31ca53626fb0bc745d3e664638aa52454a7847dd /custom | |
| parent | a1bed04f711f5a3d9e67bc5e43a8ab8beb74dfff (diff) | |
| download | elibs-b973591d73eb76a2e95c6175a0af15b5f11e82c4.tar.gz elibs-b973591d73eb76a2e95c6175a0af15b5f11e82c4.tar.bz2 | |
uniform shr remderer
Diffstat (limited to 'custom')
| -rw-r--r-- | custom/jao-custom-eww.el | 4 | ||||
| -rw-r--r-- | custom/jao-custom-notmuch.el | 4 |
2 files changed, 6 insertions, 2 deletions
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)) diff --git a/custom/jao-custom-notmuch.el b/custom/jao-custom-notmuch.el index ee8872c..e341d0e 100644 --- a/custom/jao-custom-notmuch.el +++ b/custom/jao-custom-notmuch.el @@ -621,7 +621,9 @@ (org-capture nil "X")))) ;;; html renderer -(when jao-notmuch-enabled (setq mm-text-html-renderer 'shr)) + +;; we can use the default defined in jao-custom-ewww +;; (when jao-notmuch-enabled (setq mm-text-html-renderer 'shr)) ;;; consult (jao-when-linux |
