summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.el13
1 files changed, 13 insertions, 0 deletions
diff --git a/init.el b/init.el
index 35bac48..75e5f22 100644
--- a/init.el
+++ b/init.el
@@ -42,6 +42,19 @@
(global-whitespace-mode 1)
(add-hook 'before-save-hook 'delete-trailing-whitespace)
+;; fixmes
+
+(defun font-lock-comment-annotations ()
+ "Highlight a bunch of well known comment annotations.
+
+This functions should be added to the hooks of major modes for programming."
+ (font-lock-add-keywords
+ nil '(("\\<\\(FIX\\(ME\\)?\\|TODO\\|OPTIMIZE\\|HACK\\|REFACTOR\\|XXX\\):"
+ 1 font-lock-warning-face t))))
+
+(add-hook 'prog-mode-hook 'font-lock-comment-annotations)
+
+
;; evil
(require 'evil)
(evil-mode 1)