annotate TODO in comments

This commit is contained in:
Zhitao Gong 2014-04-19 15:28:37 -05:00
parent e7d9555bc3
commit 5d8fd5c35a

View file

@ -181,7 +181,8 @@ point reaches the beginning or end of the buffer, stop there."
(interactive)
(save-excursion
(goto-char (point-min))
(while (re-search-forward "TODO:" nil t)
(while (re-search-forward
(format "[[:space:]]*%s+[[:space:]]*TODO:" comment-start) nil t)
(let ((overlay (make-overlay (- (point) 5) (point))))
(overlay-put overlay
'before-string