瀏覽代碼

Fix info dir configs

master
10sr 6 年之前
父節點
當前提交
1bb74dab32
簽署人: 10sr GPG 金鑰 ID: 7BEC428194130EB2
共有 1 個檔案被更改,包括 13 行新增4 行删除
  1. +13
    -4
      emacs.el

+ 13
- 4
emacs.el 查看文件

@@ -970,10 +970,19 @@ found, otherwise returns nil."
(with-eval-after-load 'text-mode
(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
(defvar apropos-mode-map (make-sparse-keymap))


Loading…
取消
儲存