【问题标题】:Having trouble getiting Tomorrow theme to work in Emacs无法让 Tomorrow 主题在 Emacs 中工作
【发布时间】:2015-09-28 14:18:51
【问题描述】:

我最近才开始使用 emacs。我已成功使用了几个不同的主题,但无法让 Tomorrow 工作。

这是我所做的:

.el 文件位于 ~/.emacs.d/themes/

my-init.el:

(add-to-list 'custom-theme-load-path "~/.emacs.d/themes/")
(require 'color-theme-sanityinc-tomorrow)
(load-theme 'color-theme-sanityinc-tomorrow-night t)

我通过这样做将其加载到 .emacs 中

(add-hook 'after-init-hook '(lambda ()
                  (load "~/.emacs.d/my-noexternals.el")
                  (load "~/.emacs.d/my-init.el") ))

当我重新加载 emacs 时,我看到 eval-buffer: Cannot open load file: no such file or directory, color-theme-sanityinc-tomorrow

【问题讨论】:

  • 假设您拥有 Emacs 24 或更高版本(请与 M-x version RET 核实,我强烈建议学习使用 package.el 进行安装。例如,请参阅 stackoverflow.com/q/27721215/354577关于安装主题的问答
  • 如果我使用 Emacs 23 会怎样?
  • 那么你应该考虑升级到 Emacs 24 :-)。这只是部分玩笑。从 23 到 24 有一些非常好的改进。如果您要继续使用版本 23,您可能需要考虑 installing package.el manually。它确实支持 Emacs 23,但它不附带它。
  • 我非常想升级,但在 Scientific Linux 6.5 上似乎无法升级。我错了吗?

标签: emacs


【解决方案1】:

如果 color-theme-sanityinc-tomorrow.el 在 ~/.emacs.d/themes/ 你需要:

(add-to-list 'load-path "~/.emacs.d/themes/")

在要求之前。

问候

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-11-16
    • 1970-01-01
    • 2011-06-10
    • 2013-12-12
    • 1970-01-01
    • 2016-01-08
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多