Merge pull request #516 from gongzhitaao/prelude-annotate-todo
annotate TODO only in comments
This commit is contained in:
commit
6ad8965fe2
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue