[英]setting font size and highlighting comments in emacs
How do I set the font size of comments in emacs. 如何在emacs中设置注释的字体大小。 I want the comments to be smaller in size than the rest of the code. 我希望注释的大小比其余代码小。 I also want it to be highlighted. 我也希望突出显示它。
Run Mx customize-face font-lock-comment-face and set the height
attribute, along with background
and foreground
to how you want the comments to be highlighted. 运行Mx custom-face font-lock-comment-face并设置height
属性以及background
和foreground
,以突出显示注释的方式。
To persist this between sessions, choose Save for future sessions
from the customization screen or add this to your .emacs
: 要在会话之间保持此状态,请从自定义屏幕中选择“ Save for future sessions
,或将其添加到您的.emacs
:
(custom-set-faces
'(font-lock-comment-face ((t (:background "yellow" :foreground "red" :height 0.5)))))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.