[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#6859: [address@hidden: corrected .emacs snippet for merging your own
From: |
Glenn Morris |
Subject: |
bug#6859: [address@hidden: corrected .emacs snippet for merging your own Info files] |
Date: |
Mon, 16 Aug 2010 14:30:18 -0400 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
> * currently:
>
> (require 'info)
> (setq Info-directory-list
> (cons (expand-file-name "/home/bob/info")
> Info-directory-list))
That has been incorrect since at least Emacs 21.4 (I didn't look at
older versions).
> * should be:
>
> (add-hook 'Info-mode-hook
> '(lambda ()
> (add-to-list 'Info-directory-list
> (expand-file-name "~/info"))))
That will work, but the advice in doc/misc/info.texi in Emacs seems
better:
If you wish to customize the Info directory search list for both
Emacs Info and stand-alone Info, it is best to set the
@env{INFOPATH} environment variable, since that applies to both
programs.
Then you don't have to worry about Emacs-specific stuff in the texinfo
documentation.