Skip to content
Browse files

dss/highlight-watchwords

  • Loading branch information...
1 parent 9efea9c commit addf582c760e2b32f82cfe1899c36ac8c050f9d8 @tavisrudd committed
Showing with 8 additions and 0 deletions.
  1. +8 −0 dss-codenav-helpers.el
View
8 dss-codenav-helpers.el
@@ -295,5 +295,13 @@ Comes from http://github.com/technomancy/emacs-starter-kit/blob/master/starter-k
;(message (format "%d" (+ n (* (/ (line-number-at-pos) 100) 100))))
(dss/goto-line (+ n (* (/ (line-number-at-pos) 100) 100))))
+(defun dss/highlight-watchwords ()
+ ;; http://github.com/technomancy/emacs-starter-kit/blob/master/starter-kit-defuns.el
+ (interactive)
+ ;; (font-lock-add-keywords
+ ;; nil '(("\\<\\(FIX\\|TODO\\|FIXME\\|HACK\\|@@TR\\|REFACTOR\\)*:"
+ ;; 1 font-lock-warning-face t)))
+ (highlight-regexp "\\<\\(FIXME\\|FIX\\|TODO\\|HACK\\|TR\\|REFACTOR\\):?" 'font-lock-warning-face))
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(provide 'dss-codenav-helpers)

0 comments on commit addf582

Please sign in to comment.
Something went wrong with that request. Please try again.