Emacs字体锁定突出显示怪异

Emacs字体锁定突出显示怪异,emacs,elisp,font-lock,Emacs,Elisp,Font Lock,我有更改默认颜色主题的代码。我更喜欢这种方式,因为我添加了更多的类,而不是默认的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

我有更改默认颜色主题的代码。我更喜欢这种方式,因为我添加了更多的类,而不是默认的
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)

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

因为它不是“灰色20”,而是“灰色20”,我昨天也犯了这个错误,但是是灰色10。

你在这里做了一些奇怪的事情。为什么不在Emacs24中使用内置主题呢?我的错。对我来说,它也令人困惑,使用/和一些奇怪的角色的评论…它是什么?Lisp本质上都是关于符号的。我使用一些关于符号命名的约定来简化高亮显示。我已经找到了
复制面
的解决方案,但它似乎是一个肮脏的黑客。