为什么在emacs 24.5.1中使用自定义设置面设置背景不再有效?

为什么在emacs 24.5.1中使用自定义设置面设置背景不再有效?,emacs,elisp,customization,Emacs,Elisp,Customization,我在我的.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" :fo

我在我的
.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中运行此功能,则所需的颜色外观(尤其是背景)会短暂闪烁,但会在一秒钟后重置为白色背景。不过,代码着色显然仍然有效

*消息*
缓冲区中没有错误

在emacs更新之前,它可以完美地工作


为什么这显然不再适用于emacs 24.5.1,我现在如何持续设置颜色,特别是背景色?

如果删除颜色主题内容——第3行、第4行、第5行和第7行(第1行是
;颜色主题),背景是否有
#F5DEB8
作为其颜色?然后,请告诉我们由
color-theme-emacs-21
设置的背景色。也许您是在告诉Emacs将背景色设置为
color-theme-Emacs-21
使用的任何颜色,然后在几分之一秒后,您是在告诉Emacs忘记该设置,而是使用
#F5DEB8
。此外,为什么您的默认面有:foundry“*”——即,只有一个星号作为字符串?您是否有一些文档的链接表明这是正确的?@lawlist删除第3、4、5、7行设置了正确的背景颜色,代码着色似乎也能正常工作。谢谢如果删除颜色主题内容——第3行、第4行、第5行和第7行(第1行为
;颜色主题),背景颜色是否为
#F5DEB8
?然后,请告诉我们由
color-theme-emacs-21
设置的背景色。也许您是在告诉Emacs将背景色设置为
color-theme-Emacs-21
使用的任何颜色,然后在几分之一秒后,您是在告诉Emacs忘记该设置,而是使用
#F5DEB8
。此外,为什么您的默认面有:foundry“*”——即,只有一个星号作为字符串?您是否有一些文档的链接表明这是正确的?@lawlist删除第3、4、5、7行设置了正确的背景颜色,代码着色似乎也能正常工作。谢谢