alezost / guix.el

Emacs interface for GNU Guix package manager
https://emacs-guix.gitlab.io/website/
GNU General Public License v3.0
139 stars 16 forks source link

elisp: guix-help: Add guix-info-path and emacs-guix-info-path. #9

Closed wigust closed 6 years ago

wigust commented 6 years ago
wigust commented 6 years ago

guix-info-path and emacs-guix-info-path must be nil by default.

alezost commented 6 years ago

Sorry, I don't understand why this is needed. If you want to add some extra info paths, wouldn't it be better to do it "globally" for Emacs. For example, I do it like this:

(with-eval-after-load 'info
  (info-initialize)
  (setq Info-directory-list
        (append (list "/path/to/emacs-guix/doc"
                      "/path/to/guix/doc"
                      ;;...
                      )
                Info-directory-list)))

Thus you will get the according info nodes in M-x info, etc.

wigust commented 6 years ago

Hello Alex,

Alex Kost notifications@github.com writes:

Sorry, I don't understand why this is needed. If you want to add some extra info paths, wouldn't it be better to do it "globally" for Emacs.

Apologies for this. Didn't think about Info-directory-list variable.

For example, I do it like this:

(with-eval-after-load 'info
  (info-initialize)
  (setq Info-directory-list
        (append (list "/path/to/emacs-guix/doc"
                      "/path/to/guix/doc"
                      ;;...
                      )
                Info-directory-list)))

Thus you will get the according info nodes in M-x info, etc.

Close #9