A basic minor mode for highlighting FIXME, TODO, BUG, and other warning comments, and jumping to these tags in the buffer.
And another variant Lisp:fic-mode.el where fic stands for “fixme in comments (and strings)”, which is a true minor mode that only highlights the tags in strings and comments.
And yet another variant Lisp:fic-ext-mode.el which also supports TODO(author) style.
I’ve given fix-ext-mode.el a github https://github.com/lewang/fic-mode with some fixes.
Just do as hi-lock; add this to the end of fic-mode:
And I suggest removing the lighter. It is not very important to show it and there is a lack of room in the modeline.
This highlighting of FIXMEs etc. can be done with WcheckMode. Here’s an example configuration:
(defvar my-highlight-words '("FIXME" "TODO" "BUG"))
;; Ensure that the variable exists. (defvar wcheck-language-data nil)
(push '("FIXME" (program . (lambda (strings) (let (found) (dolist (word my-highlight-words found) (when (member word strings) (push word found)))))) (face . highlight) (read-or-skip-faces (nil))) wcheck-language-data)
‘wcheck-change-language’ to FIXME and turn on
‘wcheck-mode’ (a minor mode).
Would be nice to integrate FixmeMode and WcheckMode with rfringe. It would give a visual indication in the fringe of the number and the buffer-relative positions of the FIXME notes throughout the buffer. See below for what it looks like. --DinoChiesa, 5 April 2011
actually, I built a simple fixme that does this, depends on rfringe. The code is here: Lisp:myfixme.el