简体   繁体   English

Emacs在Java模式下更改变量的颜色

[英]Emacs change color for variables in java mode

How to customize already defined color scheme in emacs . 如何在emacs中自定义已经定义的配色方案。 In my case, i have a java mode . 就我而言,我有一个java mode I know how set background, or how set color to comments, but what should I do, to redefine color for variables only? 我知道如何设置背景,或如何为注释设置颜色,但是我应该怎么做才能仅为变量重新定义颜色? In the best case I expect that I can move to needed region and redefine it with magic command... 在最好的情况下,我希望我可以移动到所需的区域并使用魔术命令对其进行重新定义...

To see what face is used for a particular character, move the point to that character and do Mx describe-char . 要查看特定角色使用的是哪种面孔,请将点移动到该角色并执行Mx describe-char It will tell you what faces are used, and from there you can customize them with Mx customize-face or with (set-face-attribute 'the-face nil :some-parameter value) . 它将告诉您使用了哪些面部,然后可以使用Mx customize-face(set-face-attribute 'the-face nil :some-parameter value)对其进行Mx customize-face

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM