我如何改变电力线邪恶中邪恶国家的脸的颜色



我想更改powerline-evil-center-color-theme的默认颜色。我特别想改变邪恶状态的脸的颜色,使背景和前景颜色与我的Emacs颜色主题相匹配。

我试着看了一下powerline-evil的自述文件,但是它没有告诉我如何通过我的init配置颜色。我试过修改电力线恶魔的代码。我想手动更改颜色,但仍然不起作用。

下面的代码摘自我的powerline-evil.el:

(defface powerline-evil-base-face
  '((t (:foreground "green" :inherit mode-line)))
  "Base face for powerline evil faces."
  :group 'powerline)
(defface powerline-evil-normal-face
  '((t (:background "#909737" :inherit powerline-evil-base-face)))
  "Powerline face for evil NORMAL state."
  :group 'powerline)
(defface powerline-evil-insert-face
  '((t (:background "blue" :inherit powerline-evil-base-face)))
  "Powerline face for evil INSERT state."
  :group 'powerline)
(defface powerline-evil-visual-face
  '((t (:background "orange" :inherit powerline-evil-base-face)))
  "Powerline face for evil VISUAL state."
  :group 'powerline)
(defface powerline-evil-operator-face
  '((t (:background "cyan" :inherit powerline-evil-operator-face)))
  "Powerline face for evil OPERATOR state."
  :group 'powerline)
(defface powerline-evil-replace-face
  '((t (:background "red" :inherit powerline-evil-base-face)))
  "Powerline face for evil REPLACE state."
  :group 'powerline)
(defface powerline-evil-motion-face
  '((t (:background "magenta" :inherit powerline-evil-base-face)))
  "Powerline face for evil MOTION state."
  :group 'powerline)

即使我将前景设置为绿色,正如你在上面的代码中看到的,它仍然显示为白色。我不知道该怎么办。有人能帮忙吗?

编辑:我现在还有另一个问题。@AaronHarris告诉我的前景色很好,但我不能改变其他州的背景色。我的整个模型线变成了我主题的背景色。我在init.el

中添加了以下代码
(custom-theme-set-faces 'jazz '(powerline-evil-base-face
                                  ((t (:foreground "jazz-fg" :inherit mode-line)))
                                  :group 'powerline))
  (custom-theme-set-faces 'jazz '(powerline-evil-insert-face
                                  ((t (:background "jazz-blue" :inherit powerline-evil-base-face)))
                                  :group 'powerline))

第一部分对前景色很好,但第二部分做得不好。

我认为你想使用custom-theme-set-faces来告诉你的主题如何处理这张脸,例如:

(custom-theme-set-faces 'my-theme '(powerline-evil-base-face
                                    ((t (:foreground "green")))))

我不是很有经验的猜测,这里发生的事情是你的主题已经知道这个脸,它的默认值也是白色,所以你对原始定义所做的任何事情都会被主题清除。

最新更新