summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2020-08-09 13:05:37 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2020-08-09 13:05:37 +0200
commit54770707ad7bbb6ef9ad636ee71e08bea5347715 (patch)
tree87d377be13e2d0ba1ea901b54371e46a3dc2ae02 /doc
parent1888c6cb96309bd1fd359f19b25c734ab5d4f224 (diff)
downloademacs-54770707ad7bbb6ef9ad636ee71e08bea5347715.tar.gz
Add a command line (and MIME handler) function to start eww
* lisp/net/eww.el (eww-browse): New command (bug#42768) to be used from the command line. * doc/misc/eww.texi (Command Line): Document it.
Diffstat (limited to 'doc')
-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 f9901b6fd78..85be112402c 100644
--- a/doc/misc/eww.texi
+++ b/doc/misc/eww.texi
@@ -52,6 +52,7 @@ modify this GNU manual.''
* Overview::
* Basics::
* Advanced::
+* Command Line::
Appendices
* History and Acknowledgments::
@@ -337,6 +338,21 @@ thus allowing for the use of the usual substitutions, such as
@code{\[eww-reload]} for the current key binding of the
@code{eww-reload} command.
+@node Command Line
+@chapter Command Line Usage
+
+It can be convenient to start eww directly from the command line. The
+@code{eww-browse} function can be used for that:
+
+@example
+emacs -f eww-browse https://gnu.org
+@end example
+
+This also allows registering Emacs as a @acronym{MIME} handler for the
+@samp{"text/x-uri"} media type. How to do that varies between
+systems, but typically you'd register the handler to call @samp{"emacs
+-f eww-browse %u"}.
+
@node History and Acknowledgments
@appendix History and Acknowledgments