emacs - 如何在 Emacs 中更改 [] 和 () 的颜色主题?

标签 emacs colors themes

我希望 [] 和 () 上的颜色非常不同,但又不一样。

最佳答案

要找出 [ ] 和 ( ) 字符或任何字符使用的面,请将光标放在所需的字符上,然后执行 M-x describe-char。这将告诉您有关该字符的所有信息,包括该字符的文本属性。文本属性之一是字体。

然后你可以做类似的事情

(set-face-foreground 'facename "Orange")
(set-face-background 'facename "Purple")

或者,为了更好地控制面部,请使用以下其他功能:

set-face-background     
set-face-font   
set-face-inverse-video-p    
set-face-underline  
set-face-background-pixmap
set-face-foreground
set-face-stipple
set-face-underline-p

您可以在 emacs.el 中全局使用它们,也可以在您的模式的模式 Hook 函数中调用它们,以仅为特定模式设置外观。

关于emacs - 如何在 Emacs 中更改 [] 和 () 的颜色主题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4181601/

相关文章:

emacs - emacs tramp double-hop ssh较早的解决方案不起作用

emacs - 输入缩进上一行?

css - 如何将流体元素扩展到固定宽度模板之外

emacs - 使用 Emacs Starter Kit 时禁用 Emacs 中的 hl-line?

css - layout dilemma : Header, 水平扩展背景颜色的内容和页脚(但同时具有居中内容)?

delphi分组框标题颜色变化

colors - 以编程方式使十六进制颜色变暗

android - 黑白应用程序有什么区别 :theme & android:theme in Android Programming

themes - 通用插件表单设计

c++ - 我可以从命令行编写和编译所有类型的 Visual Studio 应用程序吗?