繁体   English   中英

Emacs字体锁定突出怪异

[英]Emacs font-lock highlighting weirdness

我有更改默认颜色主题的代码。 我更喜欢这种方式,因为我添加了更多的类,而不是默认的font-lock

(defmacro /construct-face (name comment &rest args)
    "Define face and specify attributes."
    (list 'progn
          (list 'defface name nil comment)
          (nconc (list 'set-face-attribute (list 'quote name) nil) args)))

(/construct-face ⋅function-name "Face to highlight functions."
                  :foreground "SlateBlue")
(setq font-lock-function-name-face '⋅function-name)
(/construct-face ⋅comment "Face to display comments"
                  :foreground "gray20"
                  :bold t)
(setq font-lock-comment-face '⋅comment)

奇怪的是注释颜色变成了灰色,但是函数的名称没有变成紫色。 有什么区别,我应该尝试检查什么?

因为它不是“ gray20”而是"grey20" ,所以我昨天也犯了这个错误,但是使用了grey10。

暂无
暂无

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

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