aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc
diff options
context:
space:
mode:
authorJim Porter2024-03-18 16:52:34 -0700
committerJim Porter2024-03-23 10:17:06 -0700
commit4b0f5cdb01fbd05c8184a89fa8543eb5600fb4f8 (patch)
tree26a5e302417cf3dcd972a51994e77c1745d237dc /doc/misc
parent72972118e6f5831f200108cd7b80bf86538c265e (diff)
downloademacs-4b0f5cdb01fbd05c8184a89fa8543eb5600fb4f8.tar.gz
emacs-4b0f5cdb01fbd05c8184a89fa8543eb5600fb4f8.zip
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/misc')
-rw-r--r--doc/misc/eww.texi16
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
151displays the readable parts, and with a zero or negative prefix, it 151displays the readable parts, and with a zero or negative prefix, it
152always displays the full page. 152always displays the full page.
153 153
154@vindex eww-readable-urls
155 If you want EWW to render a certain page in ``readable'' mode by
156default, you can add a regular expression matching its URL to
157@code{eww-readable-urls}. Each entry can either be a regular expression
158in string form or a cons cell of the form
159@w{@code{(@var{regexp} . @var{readability})}}. If @var{readability} is
160non-@code{nil}, this behaves the same as the string form; otherwise,
161URLs matching @var{regexp} will never be displayed in readable mode by
162default. For example, you can use this to make all pages default to
163readable mode, except for a few outliers:
164
165@example
166(setq eww-readable-urls '(("https://example\\.com/" . nil)
167 ".*"))
168@end example
169
154@findex eww-toggle-fonts 170@findex eww-toggle-fonts
155@vindex shr-use-fonts 171@vindex shr-use-fonts
156@kindex F 172@kindex F