I wanted to add ~/.emacs.d/custom-info/ to Info directories, where I’d link some locally installed programs’ documentation (like AsynK.io).

(add-to-list 'Info-default-directory-list
  (expand-file-name "./custom-info/" user-emacs-directory))

The directory is added, as expected:

("/home/m/.emacs.d/custom-info/" "/usr/share/info/" "/usr/share/info/")

However, there’s no AsynK entry in C-h i, while:

% cat ~/.emacs.d/custom-info/asynk.info| grep -A2 'START-INFO-DIR-ENTRY'
* ASynk: (asynk).               Contacts synchronization.

What am I doing wrong?

  • 4
    Did you forget to update the dir file in your ~/.emacs.d/custom-info/ ? see gnu.org/software/texinfo/manual/texinfo/html_node/… to learn how to do that. – xuchunyang Oct 13 '15 at 9:33
  • @xuchunyang, thank you, I didn’t know I was supposed to do this. Now everything works. – Michal Rus Oct 13 '15 at 9:44
  • @xuchunyang: Please post your comment as an answer. Michal: please consider accepting it. The question is a good one, and can help others if it is marked as answered etc. – Drew Oct 13 '15 at 15:31
  • @Drew, sure, I’m happy to. – Michal Rus Oct 13 '15 at 19:11

When you want to install an Info file in a custom directory, in addition to telling your Info Reader where that directory is, you need to create/update dir file under that directory with install-info program (see here to learn how to do it).

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.