1 \input texinfo @c -*-texinfo-*-
3 @setfilename ../../info/eww
4 @settitle Emacs Web Wowser
5 @documentencoding UTF-8
6 @c @include emacsver.texi
10 This file documents the GNU Emacs Web Wowser (EWW) package.
12 Copyright @copyright{} 2014 Free Software Foundation, Inc.
15 Permission is granted to copy, distribute and/or modify this document
16 under the terms of the GNU Free Documentation License, Version 1.3 or
17 any later version published by the Free Software Foundation; with no
18 Invariant Sections, with the Front-Cover texts being ``A GNU Manual,''
19 and with the Back-Cover Texts as in (a) below. A copy of the license
20 is included in the section entitled ``GNU Free Documentation License.''
22 (a) The FSF's Back-Cover Text is: ``You have the freedom to copy and
23 modify this GNU manual.''
27 @dircategory Emacs misc features
29 * EWW: (eww). Emacs Web Wowser
35 @title Emacs Web Wowser (EWW)
36 @subtitle A web browser for GNU Emacs.
39 @vskip 0pt plus 1filll
58 * History and Acknowledgments::
59 * GNU Free Documentation License:: The license for this documentation.
64 * Lisp Function Index::
70 @dfn{EWW}, the Emacs Web Wowser, is a web browser for GNU Emacs. It
71 can load, parse, and display various web pages using @dfn{shr.el}.
72 However a GNU Emacs with @code{libxml2} support is required.
79 @vindex eww-search-prefix
82 You can open a URL or search the web with the command @kbd{M-x eww}.
83 If the input doesn't look like a URL or domain name the web will be
84 searched via @code{eww-search-prefix}. The default search engine is
85 @url{https://duckduckgo.com, DuckDuckGo}. If you want to open a file
86 either prefix the file name with @code{file://} or use the command
87 @kbd{M-x eww-open-file}.
91 @findex eww-copy-page-url
95 If loading the URL was successful the buffer @code{*eww*} is opened
96 and the web page is rendered in it. You can leave EWW by pressing
97 @kbd{q} or exit the browser by calling @kbd{eww-quit}. To reload the
98 web page hit @kbd{g} (@code{eww-reload}). Pressing @kbd{w}
99 (@code{eww-copy-page-url}) will copy the current URL to the kill ring.
102 @vindex eww-download-directory
105 A URL under the point can be downloaded with @kbd{d}
106 (@code{eww-download}). The file will be written to the directory
107 specified in @code{eww-download-directory} (Default: @file{~/Downloads/}).
110 @findex eww-forward-url
111 @findex eww-list-histories
116 EWW remembers the URLs you have visited to allow you to go back and
117 forth between them. By pressing @kbd{l} (@code{eww-back-url}) you go
118 to the previous URL. You can go forward again with @kbd{r}
119 (@code{eww-forward-url}). If you want an overview of your browsing
120 history press @kbd{H} (@code{eww-list-histories}) to open the history
121 buffer @code{*eww history*}. The history is lost when EWW is quit.
122 If you want to remember websites you can use bookmarks.
124 @findex eww-add-bookmark
125 @findex eww-list-bookmarks
129 EWW allows you to @dfn{bookmark} URLs. Simply hit @kbd{b}
130 (@code{eww-add-bookmark}) to store a bookmark for the current website.
131 You can view stored bookmarks with @kbd{B}
132 (@code{eww-list-bookmarks}). This will open the bookmark buffer
133 @code{*eww bookmarks*}.
135 @findex eww-browse-with-external-browser
136 @vindex shr-external-browser
137 @vindex eww-use-external-browser-for-content-type
139 @cindex External Browser
140 Although EWW and shr.el do their best to render webpages in GNU
141 Emacs some websites use features which can not be properly represented
142 or are not implemented (E.g., JavaScript). If you have trouble
143 viewing a website with EWW then hit @kbd{&}
144 (@code{eww-browse-with-external-browser}) inside the EWW buffer to
145 open the website in the external browser specified by
146 @code{shr-external-browser}. Some content types, such as video or
147 audio content, do not make sense to display in GNU Emacs at all. You
148 can tell EWW to open specific content automatically in an external
149 browser by customizing
150 @code{eww-use-external-browser-for-content-type}.
155 @findex eww-view-source
157 @cindex Viewing Source
158 You can view the source of a website with @kbd{v}
159 (@code{eww-view-source}). This will open a new buffer
160 @code{*eww-source*} and insert the source. The buffer will be set to
161 @code{html-mode} if available.
163 @findex url-cookie-list
166 EWW handles cookies through the @ref{Top, url package, ,url}.
167 You can list existing cookies with @kbd{C} (@code{url-cookie-list}).
168 For details about the Cookie handling @xref{Cookies,,,url}.
170 @vindex eww-header-line-format
172 The header line of the EWW buffer can be changed by customizing
173 @code{eww-header-line-format}. The format replaces @code{%t} with the
174 title of the website and @code{%u} with the URL.
176 @c @vindex shr-bullet
177 @c @vindex shr-hr-line
178 @c @vindex eww-form-checkbox-selected-symbol
179 @c @vindex eww-form-checkbox-symbol
180 @c EWW and the rendering engine shr.el use ASCII characters to
181 @c represent some graphical elements, such as bullet points
182 @c (@code{shr-bullet}), check boxes
183 @c (@code{eww-form-checkbox-selected-symbol} and
184 @c @code{eww-form-checkbox-symbol}), and horizontal rules
185 @c @code{shr-hr-line}). Depending on your fonts these characters can be
186 @c replaced by Unicode glyphs to achieve better looking results.
188 @vindex shr-max-image-proportion
189 @vindex shr-blocked-images
190 @cindex Image Display
191 Loading random images from the web can be problematic due to their
192 size or content. By customizing @code{shr-max-image-proportion} you
193 can set the maximal image proportion in relation to the window they
194 are displayed in. E.g., 0.7 means an image is allowed to take up 70%
195 of the width and height. If Emacs supports image scaling (ImageMagick
196 support required) then larger images are scaled down. You can block
197 specific images completely by customizing @code{shr-blocked-images}.
199 @node History and Acknowledgments
200 @appendix History and Acknowledgments
202 EWW was originally written by Lars Ingebrigtsen, known for his work on
203 Gnus. He started writing an Emacs HTML rendering library,
204 @code{shr.el}, to read blogs in Gnus. He eventually added a web
205 browser front end and HTML form support. Which resulted in EWW, the
206 Emacs Web Wowser. EWW was announced on 16 June 2013:
207 @url{http://lars.ingebrigtsen.no/2013/06/16/eww/}.
209 EWW was then moved from the Gnus repository to GNU Emacs and several
210 developers started contributing to it as well. A list of contributors
211 at the time of writing this manual:
219 @item Katsumi Yamaoka
220 @item Kenjiro NAKAYAMA
221 @item Lars Magne Ingebrigtsen
224 @item RĂ¼diger Sonderfeld
229 @node GNU Free Documentation License
230 @chapter GNU Free Documentation License
231 @include doclicense.texi
234 @unnumbered Key Index
239 @unnumbered Variable Index
243 @node Lisp Function Index
244 @unnumbered Function Index
249 @unnumbered Concept Index