【发布时间】:2013-10-03 15:39:00
【问题描述】:
我安装了 ac-math 插件以及自动完成功能。我 ac-math.el 在 .emacs.d/plugins/auto-complete
我把它放在我的 .emacs 中
(add-to-list 'load-path "~/.emacs.d/plugins/auto-complete/.")
(add-to-list 'ac-dictionary-directories "~/.emacs.d/plugins/auto-complete/ac-dict/")
(require 'auto-complete-config)
(ac-config-default)
(require 'ac-math)
(add-to-list 'ac-modes 'latex-mode) ; make auto-complete aware of latex-mode
(defun ac-latex-mode-setup () ; add ac-sources to default ac-sources
(setq ac-sources
(append '(ac-source-math-unicode ac-source-math-latex ac-source-latex-commands)
ac-sources)))
(add-hook 'latex-mode-hook 'ac-latex-mode-setup)
但我收到错误“错误类型参数:integrep nil”。有什么帮助吗?
【问题讨论】:
-
您是从 ELPA 安装的吗?我刚刚安装,效果很好。
-
应该是MELPA;好像the ELPA archive 没有
ac-math。 -
请完整复制并粘贴错误消息。我很确定 emacs 没有抱怨“integrep”失败。