Making your own WWW page with XEmacs
Index
Getting XEmacs
Installing XEmacs
Running XEmacs
Creating your WWW page
Viewing your WWW page
Using the W3 package
Getting XEmacs
ftp://mirror.aarnet.edu.au/xemacs/
Necessary files
- README
- README.executables
- xemacs-19.11-common.tar.gz
- xemacs-19.11-i486-unknown-linux-?.tar.gz
(there are 2 choices - athena or athena3d)
If you want to view the inlined images with the W3 package, you'll need to get
hold of the netpbm (previously pbmplus) utilities.
Installing XEmacs
As in the README.executables file:
For the below example, PREFIX=/usr/local (or /opt or /usr or even $HOME,
depending upon where you install new software)
cd $PREFIX
tar xzf ..../xemacs-19.11-common.tar.gz
tar xzf ..../xemacs-19.11-i486-unknown-linux-athena3d.tar.gz
cd bin
mv i486-unknown-linux/* .
rmdir i486-unknown-linux
Running XEmacs
xemacs &
Essential Keys
Note - `C' means the Control key, and `M' means the
Meta key, which is Alt on a PC keyboard.
- C-a
- Start of line
- C-e
- End of line
- C-v
- Page down
- M-v
- Page up
- C-x C-c
- Exit Emacs
- C-x C-f
- Open a file
- C-x C-s
- Save current buffer
- C-x
- Switch to another buffer
- C-x C-b
- List all buffers
- C-x k
- Kill a buffer
- C-x 1
- Get rid of all other windows (not ``screens'')
- C-h k
- Help on a key
- C-h b
- Show all current keybindings
- C-h m
- Help on current mode
Creating your WWW page
If you :
- make a subdir from your home dir called public_html
- call your home page index.html
other people need only refer to http://www.foo.bar.au/~johnc/ to access
your home page.
cd
mkdir public_html
Example of index.html:
<html>
<head>
<title John H. Citizen, esq.</title>
</head>
<body>
<h1>John H. Citizen, esq. </h1>
<p>
This is my home page.
<p>
Here's a picture of me : <img src="me.gif">
<p>
<hr>
<p>
This is an example for a talk given to the
<a href="http://www.luv.asn.au/luv/">
Linux Users of Victoria</a> at the October 1994 meeting.
<p>
<hr>
<p>
Click <a href="other.html">here</a> to read about something else.
<body>
<html>
Viewing your WWW page
Type M-x w3-open-local and give the filename
index.html.
If you get the error ppmdither not found turn off
Color Dithering on the WWW submenu of the
Options menu.
The middle button follows links.
Press q when you are finished.
Using the W3 package
Useful things to know while using this package to travel the web :
- The k key saves the address of the currently viewed page
into the kill ring, so you can paste it into your home page source
(or anywhere else).
- The s key views the HTML source of the current document,
so you can see how it works
- The a key adds the current page to your Hotlist, so you
can access it quickly next time you want to go there.
- The H key brings up your hotlist.
(The hotlist is also available as a submenu of the ``Navigate'' menu).
- C-o lets you enter a new URL to view.
- The o key lets you view some local HTML
(like on the previous slide)
If you have to use a proxy server, make sure you set the following environment
variables before starting XEmacs (the example applies at Monash University) :
export http_proxy="http://www.monash.edu.au/"
export ftp_proxy="http://www.monash.edu.au/"
export gopher_proxy="http://www.monash.edu.au/"
export wais_proxy="http://www.monash.edu.au/"
export file_proxy="http://www.monash.edu.au/"