mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 18:40:39 -08:00
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.
This commit is contained in:
parent
1888c6cb96
commit
54770707ad
3 changed files with 40 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue