Книга: Learning GNU Emacs, 3rd Edition

9.5.3 Installing the ELisp Library

9.5.3 Installing the ELisp Library

Installing the ELisp library package from the JDEE site is also straightforward. Unpack the downloaded file wherever you like, but before you run the make command, you'll need to edit the Makefile and configure the entries outlined in Table 9-5 to match your system.

Table 9-5. JDEE Makefile entries

Makefile entry Example Description
prefix /usr/local The top-level directory for any shared or info directories.
datadir $(prefix)/share The directory where your main Emacs directory is located.
locallisppath $(datadir)/emacs/site-lisp The directory where any local Lisp files should be installed.
ELIBDIR $(locallisppath)/elib The directory where the elib Lisp files will go.
EMACS /usr/bin/emacs The command to start Emacs. This can be a fully qualified path or simply "emacs" to reach the default version found on your system.

Run the make command with the install option to get everything set up:

shell$ make install

The last step for the ELisp library is to make sure the Emacs defaults acknowledge the new package. You simply need to add the new directory to your load-path variable, as described next.

The ELisp library actually provides a simple template file that matches where you installed the package. After the make process completes, you should have an elib_startup.el file in the directory where you ran the make command. That file contains the line you'll need to add to your .emacs file or you can merge it with the system default.el file for everyone to use. (The default.el file is often found in your site-lisp directory. Chapter 11 has more details.)

Оглавление книги


Генерация: 1.133. Запросов К БД/Cache: 3 / 1
поделиться
Вверх Вниз