如何定制 spacemacs 里面的 monokai theme, 比如说 斜体?

如何定制 spacemacs 里面的 monokai theme, 比如说 斜体?

直接使用 set-face-attribute 定义就可以了。

谢谢你的回复,能否提供一些参考,我是想能不能在写代码的时候字体的现实丰富一点,比如说 c++ 函数返回值是斜体的,函数定义的函数名为粗体的,大概这样的定义。

基本不用c++,你试试这样行不行:

(set-face-attribute 'font-lock-function-name-face nil :weight 'bold)

可以的,非常感谢! 此外,能不能告诉我在哪里找其它的属性,我可以自己试试,谢谢!

C_H F 查看函数帮助呀,这是最基本的操作。

我查了几个参数,试了一下,挺好用的,非常感谢

   (set-face-attribute 'font-lock-function-name-face nil :weight 'bold)
   (set-face-attribute 'font-lock-type-face nil :weight 'semi-bold :slant 'italic)
   (set-face-attribute 'font-lock-string-face nil  :slant 'oblique :foreground '"forest green")
2 个赞