diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2020-09-13 00:12:33 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2020-09-13 00:12:33 +0200 |
commit | 31be4d7ca48fd21bdcd5428ce4164790efd39099 (patch) | |
tree | b90517aef4eb6ed8ccc730e200bab26e54733c67 /doc/misc/eww.texi | |
parent | 3e073520b341228d7a54a242e3d09862948e5c08 (diff) | |
download | emacs-31be4d7ca48fd21bdcd5428ce4164790efd39099.tar.gz |
Add a way to use an external command to download HTML in eww
* doc/misc/eww.texi (Advanced): Document it.
* lisp/net/eww.el (eww-retrieve): New function.
(eww-reload): Use it.
(eww): Ditto.
(eww-retrieve-command): New variable.
Diffstat (limited to 'doc/misc/eww.texi')
-rw-r--r-- | doc/misc/eww.texi | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/misc/eww.texi b/doc/misc/eww.texi index 85be112402c..e814d0ac486 100644 --- a/doc/misc/eww.texi +++ b/doc/misc/eww.texi @@ -212,6 +212,23 @@ in an external browser by customizing @node Advanced @chapter Advanced +@findex eww-retrieve-command + EWW normally uses @code{url-retrieve} to fetch the @acronym{HTML} +before rendering it. It can sometimes be convenient to use an external +program to do this, and @code{eww-retrieve-command} should then be a +list that specifies a command and the parameters. For instance, to +use the Chromium browser, you could say something like this: + +@lisp +(setq eww-retrieve-command + '("chromium" "--headless" + "--virtual-time-budget=3000" + "--dump-dom")) +@end lisp + +The command should return the @acronym{HTML} on standard output, and +the data should use @acronym{UTF-8} as the charset. + @findex eww-view-source @kindex v @cindex Viewing Source |