【问题标题】:ac-math error in emacsemacs 中的 ac-math 错误
【发布时间】: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”失败。

标签: emacs latex


【解决方案1】:

就自动完成模式而言,有一个相当过时的主页:http://cx4a.org/software/auto-complete/ 如果您从那里安装,您可能没有最新版本,例如可以在 github (https://github.com/auto-complete/auto-complete) 上找到的版本。在该存储库中,版本 1.3 的分支(主页上提供的那个)在过去三年中没有更新。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-02-18
    • 2012-06-29
    • 2018-05-13
    • 2016-05-16
    • 2018-10-02
    • 2011-10-31
    • 1970-01-01
    • 2014-02-07
    相关资源
    最近更新 更多