【问题标题】:Emacs: whitespace face overriden by solarized?Emacs:被太阳能覆盖的空白面?
【发布时间】:2012-03-24 10:16:50
【问题描述】:

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

来自 .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。

【问题讨论】:

    标签: emacs themes whitespace color-scheme emacs-faces


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2013-03-31
      • 2012-01-01
      • 2012-09-18
      • 1970-01-01
      • 1970-01-01
      • 2019-12-04
      • 1970-01-01
      • 1970-01-01
      • 2013-12-14
      相关资源
      最近更新 更多