我从这里使用 zenburn:
https://github.com/djcb/elisp/blob/master/themes/zenburn-theme.el
它使用了很多 :inherit
设置。但是,我注意到当我切换到另一个主题 x 然后返回时,x 的前景将与 zenburn 的 :inherit
一起保留。 .
该怎么办?
最佳答案
:inherit 在 Emacs 24 中奇怪地工作......目前尚不清楚当前行为是“功能”还是错误。我通常加载主题:
(load-theme 'zenburn t)
(load "zenburn-theme")
在我的 init.el 末尾;显式加载应该重置继承。 This is the advice given by the author of that theme ,它对我来说也适用于其他主题(例如曝光)。
关于emacs 24 主题和继承属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11298016/