What root mode do I need to highlight TODO in Ruby, Lisp, and C-like? I tried the following, but does not highlight TODO in Ruby or Lisp:
(defun highlight-todos (font-lock-add-keywords nil
'(("\\<\\(FIXME\\|TODO\\|BUG\\):" 1 font-lock-warning-face t))))
(add-hook 'text-mode-hook 'highlight-todos)
source
share