我已经通过MELPA安装了solarized主题包。我可以通过`customize-theme选择两个日晒主题之一,然后激活它。当我保存主题设置时,它将以下内容添加到我的init.el文件中:
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(custom-enabled-themes (quote (solarized-dark)))
'(custom-safe-themes
(quote
("8aebf25556399b58091e533e455dd50a6a9cba958cc4ebb0aab175863c25b9a4" default))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
当我启动Emacs时,它不会加载主题,但是我也没有收到错误消息。实际上eval-buffer
,在init.el文件中运行会加载主题。
.emacs
您的主目录中还有文件吗?如果是这样,则忽略init-el。