Table of Contents

This is a detailed guide for installing prolog-mode. Oh well, I am not sure whether people really need this, but I am providing it just in case. A summary of these instructions is at the beginning of the source file. If you are familiar with Emacs then you are probably better off going directly there.

Note to Windows users: In the following, whenever I use the drive letter “C” I really mean the drive on which your running Windows is installed.

The Emacs init file

The init file is a file that is read and evaluated by Emacs upon startup. If you use GNU Emacs or XEmacs version 21.1 or lower, this file is called ~/.emacs. If you use XEmacs 21.4 or later, the init file is called init.el and is placed in the directory ~/.xemacs. In the following, I shall refer to both of these as the “init file,” with the understanding that the actual name of the file depends on the Emacs version used.

Where is my init file in Windows?

It is in the same place as in Unix, i.e., ~/.emacs (~/_emacs in some implementations) or ~/.xemacs/init.el (depending on your Emacs version, see above). Although the path separator in Windows is the backslash (\), Emacs understands the forward slash (/) as path separator too. In fact, Emacs works better if you specify paths using, Unix-style, the forward slash. So I recommend that you specify paths in Windows like this:

d:/program files/xemacs/site-lisp

Who is ~ you ask? It is actually system dependent, but most often it is C:\. To make sure, open your Emacs, select File → Open, enter ~, and press Enter. Emacs will show the actual name and the content of ~.

Installation

Note on syntax highlighting

In earlier versions syntax highlighting was supported but disabled by default, so that you had to enable it by hand. Starting with version 0.1.41, both the Prolog source and the inferior Prolog buffers are fontified upon opening.