Chapter 4. Emacs

Table of Contents
Get the files
Emacs installation
Gnuserv installation
Ghostscript/Ghostview installation
The first steps with Emacs
Further Reading
Summary
The all-purpose text editor and kitchen sink

Emacs is the core component of the SGML/XML system. Due to its configurability and extensibility it will be the SGML and XML document editor and front-end to all related applications, just like an IDE for a programming language. Emacs is completely different from most other text editors in that it is basically a Lisp interpreter implemented in C and a whole bunch of Lisp files, which add most of the functionality.

NTEmacs is a port of GNU Emacs for the 32bit Windows platforms. The user interface retains most of the features of its Unix counterpart, so it takes some time to get used to it for the average MS Word user. However, there are quite a few tutorials and an extremely helpful reference card for the most important commands to get started quickly. There are some important things that you should know right now to understand what is happening during the installation below.

Gnuserv is a small utility which greatly simplifies the use of Emacs. If you associate file types with Emacs, each double-click on an associated file will start a new copy of the editor, thus wasting time and memory. Gnuserv allows to open such files in a running copy of Emacs, and it will create a new frame for the file if you wish so.

Although not directly related to Emacs, we will also install Ghostscript (a PostScript interpreter) and Ghostview (a graphical frontend for Ghostscript including a previewer) at this point. These tools are useful to preview PostScript documents and print them on non-PostScript printers. We need this feature in this and the following chapters to view or print useful help files. At a later stage you will be able to create PostScript documents from your SGML source documents.

Get the files

  1. NTEmacs version 21.1. This contains the precompiled lisp files, but not the Lisp sources. If you want to edit the Lisp source code (or just want to learn from it), you can download the bigger full release instead.

  2. Gnuserv

  3. Ghostscript version 7.00

  4. Ghostview version 4.2