all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to tweak EWW readable mode?
@ 2024-05-06 23:23 Pengji Zhang
  0 siblings, 0 replies; only message in thread
From: Pengji Zhang @ 2024-05-06 23:23 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I am using Emacs master, and I really like the changes to EWW readable
in 72972118e6f5831f200108cd7b80bf86538c265e and
4b0f5cdb01fbd05c8184a89fa8543eb5600fb4f8. Many thanks to Jim!

However, now I could not find an easy way to tweak readable mode. For
example, I would like to use a narrower width for a web page only in
readable mode. I used to add an `:around' advice to `eww-readable':

    (define-advice eww-readable (:around (fn &rest args))
      (let ((shr-max-width 60))
        (apply fn args)))

Now `eww-readable' could toggle readable mode and pages may also be in
readable mode by default. So that advice does not work any more.

I wonder if there is a reliable way to tweak the rendering and apply
some settings only in EWW readable mode?

Thanks!

Pengji



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-05-06 23:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-06 23:23 How to tweak EWW readable mode? Pengji Zhang

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.