gpt4 book ai didi

Emacs 自动完成错误 : Symbol's value as variable is void: ac-modes

转载 作者:行者123 更新时间:2023-12-04 13:24:36 25 4
gpt4 key购买 nike

这个问题在这里已经有了答案:





Emacs: Symbol's value as variable is void

(1 个回答)


4年前关闭。




我正在尝试安装 emacs latex 自动完成包(http://code.google.com/p/ac-math/)。我将 ac-math.el 放入 ~/elisp 加载路径目录,然后将以下内容放入我的 .emacs 文件中:

;; Adds elisp to load-path
(add-to-list 'load-path "~/elisp")

;; Loads latex auto-complete
(require 'ac-math)
(add-to-list 'ac-modes 'latex-mode)
(defun ac-latex-mode-setup ()
(setq ac-sources
(append '(ac-source-math-latex ac-source-latex-commands ac-source-math-unicode)
ac-sources))
)
(add-hook 'LaTeX-mode-hook 'ac-latex-mode-setup)

但是当我加载 emacs 时,我得到了这个错误:

Warning (initialization): An error occurred while loading `/home/eddy/.emacs':

Symbol's value as variable is void: ac-modes

To ensure normal operation, you should investigate and remove the cause of the error in your initialization file. Start Emacs with the `--debug-init' option to view a complete error backtrace.



提前致谢

最佳答案

添加 (require 'auto-complete)在顶部。或者,更好的是,说服 ac-math 包维护者将其添加到那里。

关于Emacs 自动完成错误 : Symbol's value as variable is void: ac-modes,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7131717/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com