Making your own WWW page with XEmacs


Getting XEmacs
Installing XEmacs
Running XEmacs
Creating your WWW page
Viewing your WWW page
Using the W3 package

Getting XEmacs

Necessary files

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)

	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.
Start of line
End of line
Page down
Page up
C-x C-c
Exit Emacs
C-x C-f
Open a file
C-x C-s
Save current buffer
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 :
  1. make a subdir from your home dir called public_html
  2. call your home page index.html
other people need only refer to to access your home page.
	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=""> 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 : 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=""
export ftp_proxy=""
export gopher_proxy=""
export wais_proxy=""
export file_proxy=""