Home / Emacs / Hi Lock / Patches
TODO Contribute string highlighting upstream
Quoted highlight hi-lock-face-phrase-buffer (where to bind?):
(defun my-hi-lock-string (string &optional face)
"Set face of each occurrence of STRING to FACE."
(interactive
(list (hi-lock-read-regexp "String to highlight")
(hi-lock-read-face-name)))
(hi-lock-face-buffer (regexp-quote string) face))