diff --git a/README.org b/README.org index 1f1acf9..a2c3371 100644 --- a/README.org +++ b/README.org @@ -937,14 +937,15 @@ looks for files. #+name: lst:configure-info #+begin_src emacs-lisp (with-eval-after-load 'info - ;; Make Emacs find ALL "*.info" files in `packages-user-dir'. - (dolist (path - (nreverse - (mapcar - (lambda (name) - (expand-file-name (file-name-directory name))) - (directory-files-recursively package-user-dir "\\.info\\'")))) - (add-to-list 'Info-directory-list path nil #'file-equal-p)) + ;; Make Emacs find ALL "*.info" files in `package-user-dir' on Gentoo Linux. + (when (eq system-type 'gnu/linux) + (dolist (path + (nreverse + (mapcar + (lambda (name) + (expand-file-name (file-name-directory name))) + (directory-files-recursively package-user-dir "\\.info\\'")))) + (add-to-list 'Info-directory-list path nil #'file-equal-p))) ;; Make Emacs find my "python.info" file. (add-to-list 'Info-directory-list (expand-file-name "~/.local/share/info")))