我使用
在.emacs
中设置了自定义颜色外观
;; color theme
;;
(require 'color-theme)
(color-theme-initialize)
(setq color-theme-is-global t)
;; base theme
(color-theme-emacs-21)
;;
(custom-set-faces
'(default ((t (:overline nil :inherit nil :stipple nil :background "#F5DEB8" :foreground "#000000" :inverse-video nil :box nil :strike-through nil :underline nil :slant normal :weight normal :height 110 :width normal :foundry "*" :family "DejaVu Sans Mono"))))
'(font-lock-comment-face ((t (:foreground "#008000"))))
'(font-lock-function-name-face ((t (:foreground "#00D0D0" :underline nil :weight normal))))
'(font-lock-keyword-face ((t (:foreground "#0000FF" :weight normal))))
'(font-lock-string-face ((t (:foreground "#FF00FF" :slant normal))))
'(font-lock-type-face ((t (:foreground "#00D0D0"))))
'(font-lock-variable-name-face ((t (:foreground "#000000"))))
'(font-lock-builtin-face ((t (:foreground "#0000FF"))))
'(font-lock-constant-face ((t (:foreground "#0000FF"))))
)
如果我在emacs 24.5.1中运行它,所需的颜色外观 - 特别是背景 - 会短暂闪烁,但会在一瞬间重置为白色背景。但代码着色显然仍然有效。
*Messages*
缓冲区中没有错误。
它曾经在emacs更新之前完美无缺地工作。
为什么这显然不再适用于emacs 24.5.1,如何现在持久设置颜色,特别是背景颜色?