具体来说,我正在尝试使以下代码起作用:问题是 term-default-bg-color (接近代码块末尾)似乎并不普遍存在,所以我试图获取 emacs 背景颜色并使用它
(defun low-lock-face-phrase-buffer (regexp )
"Set face of each match of phrase REGEXP to term-default-bg-color to dim it;
internally it calls to hi-lock-face-phrase-buffer"
(interactive
(list
(hi-lock-regexp-okay
(hi-lock-process-phrase
(read-regexp "Phrase to dim" (car regexp-history))))))
(unless hi-lock-mode (hi-lock-mode 1))
(hi-lock-set-pattern regexp 'term-default-bg-color))