1

With emacs24 I'm using org-mode 8.2.8 installed from the tar.gz file available on orgmode.org.

I'm trying to get the infopath loaded so that C-h i m Org Mode RET will give me the org manual.

The org faq mentions two methods - both of which make reference to /path/to/org-mode/info but there isn't any info directory in the 8.2.8 org-mode root directory, only a doc directory.

Compiling org-mode 8.2.8 with the make command from the org-mode 8.2.8 root directory builds the file /usr/share/org which seemingly contains the manual for org 8.2.8 but I'm not able to load that with neither methods mentioned in the FAQ.

Note: I've previously asked this question. In that case I was using the version of org-mode that shipped with emacs24 and apt-get install emacs24-common-non-dfsg got me the man pages. This is a different case in which I'm using another version of org-mode than the default.

Community
  • 1
  • 1
MajorBriggs
  • 556
  • 4
  • 18

2 Answers2

2

The doc directory contains org.texi. Add that to Info-directory-list.

(add-to-list 'Info-directory-list "/path/to/org-mode/doc")

If info hasn't been loaded yet, use

(eval-after-load "info"
  '(progn
     (info-initialize)
     (add-to-list 'Info-directory-list "/path/to/org-mode/doc")))

or

(add-to-list 
 'Info-default-directory-list "/path/to/org-mode/doc")
Kyle Meyer
  • 1,546
  • 9
  • 10
  • That as well gives me the error "Symbol's value as variable is void: Info-directory-list" on emacs startup. – MajorBriggs Nov 06 '14 at 21:02
  • I've updated my answer. I have the first answer in my configuration, but that must work because info is loaded at some other point. – Kyle Meyer Nov 06 '14 at 21:40
  • `(eval-after-load "info" '(progn (info-initialize) (add-to-list 'Info-directory-list "/path/to/org-mode/doc")))` did the trick. – MajorBriggs Nov 07 '14 at 07:21
1

I'm using the following "generic" solution to add a couple of Info paths:

(with-eval-after-load "info"
  (setq Info-directory-list
        `(,(expand-file-name
            (concat (file-name-directory (locate-library "org")) "../doc/"))
          "c:/cygwin/usr/share/info/"
          ,@Info-directory-list)))

(For Emacs 24.4, because of the with-eval-after-load)

fniessen
  • 4,408
  • 19
  • 18