(Emacs 23.4.1)
我正在寻找一种解决方案,只要函数参数列表等于或高于 2 个参数,函数名称的颜色就会变为常规文本。
因此,采用 0 或 1 个参数的函数具有我在.emacs文件中设置的漂亮颜色。
为什么具有 >= 2 个参数的函数不能得到它?
这是我的.emacs custom-set-face
:
(custom-set-faces
'(default ((t (:background "#F9F9F7" :family "liberation mono"))))
'(font-lock-builtin-face ((t (:foreground "#5B5B5B"))))
'(font-lock-comment-face ((t (:foreground "#afaf9d"))))
'(font-lock-constant-face ((t (:foreground "#2caeae"))))
'(font-lock-function-name-face ((t (:bold t :foreground "#931616"))))
'(font-lock-keyword-face ((t (:bold t :foreground "#35363a"))))
'(font-lock-negation-char-face ((t (:bold t))))
'(font-lock-reference-face ((t (:foreground "#cbcbcb"))))
'(font-lock-string-face ((t (:foreground "#e80000"))))
'(font-lock-type-face ((t (:bold t :foreground "#3f4d7f"))))
'(font-lock-variable-name-face ((t (:foreground "#35363a"))))
'(font-locl-preprocessor-face ((t (:foreground "#cbcbcb"))))
)