[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
You can invoke emacs-w3m using three different commands, listed below.
Try one of these commands: a web page is displayed in an Emacs buffer
named "*w3m*", meaning that it is an emacs-w3m buffer. As you will
probably notice, the major mode for an emacs-w3m buffer is
w3m-mode
, there are also minor modes (see section 3.4 That's a favorite with me!).
This section explains the most fundamental usage of these commands, see 12. Details of some emacs-w3m functions for more information on them. See also 5. Customizable variables for variables you can use to customize emacs-w3m's behavior.
w3m
w3m-home-page
variable. The default value for
w3m-home-page
is "about:". Set the w3m-quick-start
variable to nil
if you want to input a target URL every time you
start emacs-w3m.
You can also use this as an Emacs batch command. Here's an example:
% emacs -f w3m |
To specify a URL, you could also use:
% emacs -f w3m http://emacs-w3m.namazu.org/ |
w3m-find-file
w3m-browse-url
Moving in an emacs-w3m buffer won't be painful if you're an Emacs user already, since many of the standard keys work as intended. For instance, C-n, C-v and C-s (which are commonly used to move down one line, one page, or search downwards for a word) are valid keys in an emacs-w3m buffer.
To follow a link, use the RET key. You have to move the point to
a link to do this; links are easily recognizable in a buffer because
they are not displayed like ordinary text: they can be underlined, or
have a different color. The face w3m-anchor-face
controls how
they are to be displayed (see section 5. Customizable variables).
w3m-view-this-url
).
The exact behavior of this command depends on the properties of the link under point, and on whether you give it a prefix argument or not. See 12. Details of some emacs-w3m functions for details.
As mentioned above, you can be prompted for a URL when you use the
command M-x w3m, by setting the w3m-quick-start
variable to
nil
. In an emacs-w3m buffer, there are also two popular ways to
go to new pages by entering their URLs, see below.
w3m-view-this-url
).
w3m-goto-url
).
w3m-goto-url-new-session
).
kill-ring
(w3m-print-current-url
).
kill-ring
(w3m-print-this-url
).
If the page you're reading is today's news or someone's diary, it may have been updated since you loaded it. You can refresh the page using the following command. (This command can also be useful to force a full redisplay of the page if it looks broken.)
w3m-reload-this-page
).
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |