本文介绍了如何修复“符号的函数定义是无效的”同时在emacs24中加载一个颜色主题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我加载我的 .emacs
,虽然颜色主题,暮光之城,加载正常,但它显示我这个错误信息:
When I load my .emacs
, although the color theme, twilight, loads up fine, but it shows me this error message:
Symbol's function definition is void: color-theme-twilight
在我的 .emacs
中,我添加了以下行来添加颜色主题:
In my .emacs
I have put the following lines to add the color theme:
(require 'color-theme)
(setq color-theme-is-global t)
(color-theme-initialize)
(color-theme-twilight)
color-theme-twilight.el
文件住在〜/ .emacs.d / themes /
我看着问题。但解决方法是纠正错字。但我没有打错字。我在emacs24。有什么问题?
I looked at this question. But the solution there is a correction to a typo. But I am not making that typo. I am on emacs24. What is the problem?
推荐答案
解决问题。删除所有行:
Solved the problem. Removed all the lines :
(require 'color-theme)
(setq color-theme-is-global t)
(color-theme-initialize)
(color-theme-twilight)
刚刚添加:
(load-file "~/.emacs.d/themes/color-theme-twilight.el")
问题是最后一行:
(color-theme-twilight)
其他根本不需要三行。不确定这是否是最优雅的解决方案。
Other three lines are not required at all. Not sure if this is the most elegant solution.
这篇关于如何修复“符号的函数定义是无效的”同时在emacs24中加载一个颜色主题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!