Emacs Introduction
This tutorial describes how to use Emacs, which is a text editor. On
personal computers, many applications come packaged with their own
editor. In contrast, you will use Emacs on this workstation for
almost all of your editing needs. You can write programs and create
documents, to name a few examples.
In this lesson, we'll cover many of the capabilities of Emacs. If you
already have an open Emacs window, you can use it for this lesson. If
you don't have one, you can create one by selecting the ``Emacs'' icon
from the toolbar on the left side of the display. If that doesn't
work, enter the command
emacs &
in your xterm window.
You need some files copied into your directory to use for this lesson.
They will be put in a directory called ``emacsdemo'' in your home
directory.
Click to copy files.
You may be used to starting, using, and exiting a text editor many
times during a single session with a computer. On a workstation, the
usual practice is to create an Emacs window at the beginning of a
session and to leave it in place until the end of the session. When
you need to create an Emacs window during a session, you can do so as
explained above.
While going through this lesson, you will be prompted with commands to
enter in the Emacs window. Some of these commands are ``control'' or
``meta'' commands. You will see control commands described like
``C-x'' or ``<ctrl>x'', and meta commands like
``M-x'' or ``<meta>x''. To type these commands
press and hold the control or meta key (the meta key is usually the
key next to the space bar labeled ``alt'' or labeled with a diamond)
and then press the other key in the sequence.
The advanced features of Emacs make it a powerful aid to programmers.
It is a gloriously complicated contraption of which many serious
programmers are quite fond. Fortunately, it is not hard to learn a
useful subset of the full range of commands. We will concentrate here
on the basic ways of using Emacs to create text files. Other
tutorials will cover the use of Emacs in program development.