1

我试用了 solarized 主题(可从此处获得)并且非常喜欢它。但是,它以某种方式覆盖了我的空白设置,无论我如何配置空白面,它都会被覆盖。关于如何控制我的空白颜色的任何想法,同时保持整洁的颜色-主题-日光化-深色?

来自 .emacs:

;;; Install colortheme
(add-to-list 'load-path "/home/blabla/.emacs.d/color-theme-6.6.0/")
(require 'color-theme)
(eval-after-load "color-theme"
  '(progn
     (color-theme-initialize)
     (color-theme-hober)))

;;; Install solarized
(add-to-list 'load-path "/home/blabla/.emacs.d/emacs-color-theme-solarized")
(require 'color-theme-solarized)
(color-theme-solarized-dark)

这是我之前的设置:

(custom-set-faces
  '(whitespace-space ((((class color) (background light)) (:background "white" :foreground "darkgrey"))))
  '(whitespace-tab ((((class color) (background light)) (:background "white" :foreground "darkgrey")))))

我发现唯一有任何影响的是:

(whitespace-space ((t (:background "red"))))

当然,这只会为每个空白区域呈现丑陋的背景。

使用 GNU Emacs 23.3.1。

4

1 回答 1

1

这里的 Solarized 版本具有whitespace-mode使用 Solarized 看起来不错所需的所有面孔。它仅适用于 Emacs 24(但也可以在 Emacs 23 上工作load-theme),但如果您不想使用它,您可以简单地将相关颜色复制到您下载的颜色主题的定义中。

于 2012-03-06T22:14:59.947 回答