1

我在 ubuntu 12.04 中使用 emacs。我想在我的 .Xresources 中定义一些背景或前景。

当我使用:

Emacs.mode-line.attributeForeground: #ccc
Emacs.mode-line.attributeBackground: #333

它有效,现在我想禁用模式行框或将模式行框颜色设置为#ccc。

我用谷歌搜索并找到了一些:

Emacs.mode-line.AttributeBox: off

但它没有用。我只希望它在 .Xresource 文件中而不是 emacs 初始化文件中。谁能帮我?谢谢。

4

2 回答 2

2

由于 emacs X 窗口实例默认具有小写名称,因此您似乎也必须使用小写指定主要资源类,即:

emacs.mode-line.attributeBox: nil

此外,您需要使用nil禁用 box 属性,因为 emacs 会为off. 同样,如果您希望在将鼠标悬停在模式行中的项目上时禁用 box 属性,您可能还需要设置emacs.mode-line-highlight.attributeBox为。nil

于 2012-06-12T01:48:21.197 回答
1

我在 ubuntu12.04 中使用 emacs24。

模式行中的此禁用框属性(感谢 Greg E.):

Emacs.mode-line.attributeBox: nil

此设置模式行框颜色:

Emacs.mode-line.attributeBox: "#333"

而这个设置模式行背景和前景:

Emacs.mode-line.attributeForeground: #ccc
Emacs.mode-line.attributeBackground: #333

在我的电脑中,设置背景或前景不能使用双引号,设置框颜色必须使用双引号。我不知道为什么。

于 2012-06-12T03:09:24.203 回答