Browse Source

Fix info dir configs

master
10sr 6 years ago
parent
commit
1bb74dab32
Signed by: 10sr GPG Key ID: 7BEC428194130EB2
1 changed files with 13 additions and 4 deletions
  1. +13
    -4
      emacs.el

+ 13
- 4
emacs.el View File

@@ -970,10 +970,19 @@ found, otherwise returns nil."
(with-eval-after-load 'text-mode (with-eval-after-load 'text-mode
(define-key text-mode-map (kbd "C-m") 'newline)) (define-key text-mode-map (kbd "C-m") 'newline))


(with-eval-after-load 'info
(defvar Info-directory-list nil)
(add-to-list 'Info-directory-list
(expand-file-name "~/.brew/share/info")))
(autoload-eval-lazily 'info nil
(defvar Info-additional-directory-list)
(dolist (dir (directory-files (concat user-emacs-directory
"info")
t
"^[^.].*"))
(when (file-directory-p dir)
(add-to-list 'Info-additional-directory-list
dir)))
(let ((dir (expand-file-name "~/.brew/share/info")))
(when (file-directory-p dir)
(add-to-list 'Info-additional-directory-list
dir))))


(with-eval-after-load 'apropos (with-eval-after-load 'apropos
(defvar apropos-mode-map (make-sparse-keymap)) (defvar apropos-mode-map (make-sparse-keymap))


Loading…
Cancel
Save