all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Pengji Zhang <kunhtkun@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: How to tweak EWW readable mode?
Date: Mon, 6 May 2024 19:23:38 -0400	[thread overview]
Message-ID: <CANOCUiyx=US2cFV-=eYBaq6YQ=JUZTh1xgdritAw8eFgoEHHAg@mail.gmail.com> (raw)

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



                 reply	other threads:[~2024-05-06 23:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CANOCUiyx=US2cFV-=eYBaq6YQ=JUZTh1xgdritAw8eFgoEHHAg@mail.gmail.com' \
    --to=kunhtkun@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.