diff options
| author | Jim Porter | 2024-03-18 16:52:34 -0700 |
|---|---|---|
| committer | Jim Porter | 2024-03-23 10:17:06 -0700 |
| commit | 4b0f5cdb01fbd05c8184a89fa8543eb5600fb4f8 (patch) | |
| tree | 26a5e302417cf3dcd972a51994e77c1745d237dc /doc/misc | |
| parent | 72972118e6f5831f200108cd7b80bf86538c265e (diff) | |
| download | emacs-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.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 | |||
| 151 | displays the readable parts, and with a zero or negative prefix, it | 151 | displays the readable parts, and with a zero or negative prefix, it |
| 152 | always displays the full page. | 152 | always 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 | ||
| 156 | default, you can add a regular expression matching its URL to | ||
| 157 | @code{eww-readable-urls}. Each entry can either be a regular expression | ||
| 158 | in string form or a cons cell of the form | ||
| 159 | @w{@code{(@var{regexp} . @var{readability})}}. If @var{readability} is | ||
| 160 | non-@code{nil}, this behaves the same as the string form; otherwise, | ||
| 161 | URLs matching @var{regexp} will never be displayed in readable mode by | ||
| 162 | default. For example, you can use this to make all pages default to | ||
| 163 | readable 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 |