[英]Emacs 24.4 custom themes
I recently installed Emacs 24 on my Mac using Homebrew (I used to use Aquamacs for some time but I want to familiarize myself more with LISP and what Emacs has to offer and thus would prefer GNU Emacs in the future). 我最近使用Homebrew在Mac上安装了Emacs 24(我曾经使用Aquamacs了一段时间,但我想更加熟悉LISP和Emacs提供的功能,因此将来会更喜欢GNU Emacs)。
I have some problems using customized themes though. 我在使用自定义主题时遇到了一些问题。 I downloaded zenburn and solarized using the emacs package manager.
我下载了zenburn,并使用emacs软件包管理器进行了晒黑。 Packages were automatically saved to
软件包自动保存到
.emacs.d/elpa/solarized-theme-20150326.2320
.emacs.d/elpa/zenburn-theme-20150315.1540
When I go to "Options>Customize Emacs>Custom Themes" both themes are displayed. 当我转到“选项>自定义Emacs>自定义主题”时,将显示两个主题。 When I tick one of the themes, it gets properly changed and displayed but I am unable to change the settings.
当我勾选其中一个主题时,它会正确更改并显示,但是我无法更改设置。 If I save, the following gets written to my .emacs file:
如果保存,则将以下内容写入我的.emacs文件:
(custom-set-variables
'(custom-enabled-themes (quote (solarized-dark)))
'(custom-safe-themes
(quote ("8aebf25556399b58091e533e455dd50a6a9cba958cc4ebb0aab175863c25b9a4" "ed8fb2bc0f63c0fceffda864dedebc22b18edec238f7d52432f4af25a17a477a" "d677ef584c6dfc0697901a44b885cc18e206f05114c8a3b7fde674fce6180879" default))))
However, when I close and open Emacs again it states: 但是,当我再次关闭并打开Emacs时,它指出:
Failed to enable theme: solarized-dark
Any suggestions on what to do or what I am doing wrong? 关于做什么或我做错了什么建议?
Your help is very much appreciated. 非常感激你的帮助。
我刚刚发现,在.emacs文件中添加以下行即可解决此问题:
(package-initialize)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.