One more step in addition to M-x occur RET TODO RET is to highlight the use of the word TODO See C-h f font-lock-add-keywords for details (font-lock-add-keywords 'ess-mode '(("\\<\\(TODO\\)" 1 font-lock-warning-face prepend))) Rich