summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2021-04-03 01:13:28 +0800
committerJSDurand <mmemmew@gmail.com>2021-04-03 01:13:28 +0800
commit7023bc46c91f2223a1cba4b15cc41b3c2274e17b (patch)
tree8cb324bc3431907b9631408a79827d0da391db37
parent42311ef8f82ca1eb4f60d07de84b96a572eecfa0 (diff)
Fix Info directory having wrong value at startup
* bongo.el: I used to set Info-directory-list to the directory of bongo at startup. This causes Info to not initialize that variable, and as a consequence, the Info will not be started correctly, before I fix the value of that variable. Now this problem is fixed.
-rw-r--r--bongo.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/bongo.el b/bongo.el
index 061d7a0..f5677e4 100644
--- a/bongo.el
+++ b/bongo.el
@@ -33,7 +33,11 @@
;;;###autoload
(eval-after-load 'info
- '(add-to-list 'Info-directory-list (expand-file-name "bongo/" package-dir)))
+ '(cond
+ ((null Info-directory-list)
+ (setq Info-directory-list (append Info-default-directory-list
+ (expand-file-name "bongo/" package-dir))))
+ ((add-to-list 'Info-directory-list (expand-file-name "bongo/" package-dir)))))
;;;###autoload
(defvar durand-bongo-music-dir nil