If an Info file is not in the `info' directory, there are three ways to specify its location:
Info-directory-listvariable in your personal or site initialization file. This tells Emacs's Info reader reader where to look for `dir' files. Emacs merges the files named `dir' from each of the listed directories. (In Emacs Version 18, you can set the
Info-directoryvariable to the name of only one directory.)
For example, to reach a test file in the `~bob/manuals' directory, you could add an entry like this to the menu in the `dir' file:
* Test: (/usr/bob/manuals/info-test). Bob's own test file.
In this case, the absolute file name of the `info-test' file is written as the second part of the menu entry.
Alternatively, you could write the following in your `.emacs' file:
(setq Info-directory-list '("/usr/bob/manuals" "/usr/local/emacs/info"))
This tells Emacs to merge the `dir' file from the `/usr/bob/manuals' directory with the `dir' file from the `"/usr/local/emacs/info'" directory. Info will list the `/usr/bob/manuals/info-test' file as a menu entry in the `/usr/bob/manuals/dir' file.
Finally, you can tell Info where to look by setting the
INFOPATH environment variable in your `.cshrc' or
If you use
bash for your shell command interpreter,
you must set the
INFOPATH environment variable in the
`.profile' initialization file; but if you use
csh, you must
set the variable in the `.cshrc' initialization file. The two
files require slightly different command formats.
INFOPATHvariable as follows:
setenv INFOPATH .:~bob/manuals:/usr/local/emacs/info
INFOPATH=.:~bob/manuals:/usr/local/emacs/info export INFOPATH
The `.' indicates the current directory. Emacs uses the
INFOPATH environment variable to initialize the value of Emacs's