我在带有终端的 MacOS 10.6 上使用 emacs。我有一个白色的背景。
阅读引用的 C++ 字符串非常困难。他们以淡绿色出现。关键字是绿松石色。
在搜索完源代码后,我发现了 cpp.el,并确定我使用的是 cpp-face-light-name-list 而不是 cpp-face-dark-name-list。
显然这个函数应该根据背景颜色选择正确的列表:
(defcustom cpp-face-default-list nil
"Alist of faces you can choose from for cpp conditionals.
Each element has the form (STRING . FACE), where STRING
serves as a name (for `cpp-highlight-buffer' only)
and FACE is either a face (a symbol)
or a cons cell (background-color . COLOR)."
:type '(repeat (cons string (choice face (cons (const background-color) string))))
:group 'cpp)
但这似乎不起作用。
我应该在我的 .emacs 文件中放入什么以便获得 cpp-face-dark-list 而不是 cpp-face-light-list?
谢谢!