文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>定制GNU Emacs字体语法颜色

定制GNU Emacs字体语法颜色

时间:2006-02-16  来源:leeward

在~/.emacs中加上一个如下的lisp语句,这样启动以后该设置就会生效了,当然是全局的.需要进一步的改进.对于更多的机制我不是很清楚.

(custom-set-faces
'(font-lock-string-face ((t (:foreground "Goldenrod"))) t)
'(font-lock-constant-face ((t (:foreground "Orange"))) t)
'(font-lock-doc-string-face ((t (:foreground "Red"))) t)
'(font-lock-variable-name-face ((t (:foreground "OrangeRed"))) t)
'(font-lock-function-name-face ((t (:foreground "Brown"))) t)
'(font-lock-keyword-face ((t (:foreground "Blue"))) t)
'(font-lock-builtin-face ((t (:foreground "Blue"))) t)
'(font-lock-type-face ((t (:foreground "Blue"))) t)
'(font-lock-other-type-face ((t (:foreground "Blue"))) t)
'(font-lock-comment-face ((t (:foreground "ForestGreen"))) t)
'(font-lock-warning-face ((t (:foreground "Coral"))) t))

可以在*scratch* buffer中调试这个语句,方法是在语句后面按Ctrl-x Ctrl-e.

查看颜色和名称可以用命令Alt-x list-colors-display,当然这个要窗口模式下运行才有效.

相关阅读 更多 +
排行榜 更多 +
战地方块战场中文版下载

战地方块战场中文版下载

飞行射击 下载
云原神国际服手机版下载

云原神国际服手机版下载

角色扮演 下载
海之号角柯罗诺斯地下城手机版下载

海之号角柯罗诺斯地下城手机版下载

角色扮演 下载