Specifically I am trying to make below codes work: the problem is that term-default-bg-color (close to the end of code block) doesn't seem to exist universally so I am trying to get emacs background color and use that
(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))
list: Symbol's function definition is void: hi-lock-regexp-okay
. Also, please describe the error you are receiving -- e.g., nothing happens, or a specific error message. – Unshackle