diff options
author | Jim Porter <jporterbugs@gmail.com> | 2024-03-18 16:52:34 -0700 |
---|---|---|
committer | Jim Porter <jporterbugs@gmail.com> | 2024-03-23 10:17:06 -0700 |
commit | 4b0f5cdb01fbd05c8184a89fa8543eb5600fb4f8 (patch) | |
tree | 26a5e302417cf3dcd972a51994e77c1745d237dc /doc | |
parent | 72972118e6f5831f200108cd7b80bf86538c265e (diff) | |
download | emacs-4b0f5cdb01fbd05c8184a89fa8543eb5600fb4f8.tar.gz |
Add 'eww-readable-urls'
* lisp/net/eww.el (eww-readable-urls): New option.
(eww-default-readable-p): New function...
(eww-display-html): ... use it.
* test/lisp/net/eww-tests.el (eww-test/readable/default-readable): New
test.
* doc/misc/eww.texi (Basics): Document 'eww-readable-urls'.
* etc/NEWS: Announce this change (bug#68254).
Diffstat (limited to 'doc')
-rw-r--r-- | doc/misc/eww.texi | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/misc/eww.texi b/doc/misc/eww.texi index 522034c874d..eec6b3c3299 100644 --- a/doc/misc/eww.texi +++ b/doc/misc/eww.texi @@ -151,6 +151,22 @@ readable parts. With a positive prefix argument, this command always displays the readable parts, and with a zero or negative prefix, it always displays the full page. +@vindex eww-readable-urls + If you want EWW to render a certain page in ``readable'' mode by +default, you can add a regular expression matching its URL to +@code{eww-readable-urls}. Each entry can either be a regular expression +in string form or a cons cell of the form +@w{@code{(@var{regexp} . @var{readability})}}. If @var{readability} is +non-@code{nil}, this behaves the same as the string form; otherwise, +URLs matching @var{regexp} will never be displayed in readable mode by +default. For example, you can use this to make all pages default to +readable mode, except for a few outliers: + +@example +(setq eww-readable-urls '(("https://example\\.com/" . nil) + ".*")) +@end example + @findex eww-toggle-fonts @vindex shr-use-fonts @kindex F |