On Fri, Aug 30 2013, [email protected] wrote:
> Tassilo Horn <[email protected]> writes:
>> (add-to-list 'Info-directory-list "~/code/auctex/doc")
>
>   TL;DR
> Use:
> (require 'info) ; unless already require'd earlier
> (add-to-list 'Info-additional-directory-list "~/code/auctex/doc")

I'd suggest using Customize.

>   Longer version
> From what I understand (and I spent a lot of time trying to grasp these
> things at some point), what you suggest is ok if Info-directory-list is
> already initialized (exists and is non-nil), which is usually not the
> case while reading .emacs.

That's why Customize exists. (Well, one of the reasons, at least.)

> At best it will produce an error (if info was
> not yet loaded), or it will produce no error but the variable won't get
> filled properly with system-wide info dirs (only those explicitly added
> with a line like above). That's at least what I see with a recent emacs.
> Also, it is a defvar, not a defcustom,

Actually, Info-additional-directory-list is a defcustom. At least in the
Emacs version I'm running (24.3.50.1).

-- 
Joost Kremers
Life has its moments

_______________________________________________
auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex

Reply via email to