From 14c4eabd8d6ee28c87f51710f37006a358fb9f04 Mon Sep 17 00:00:00 2001
From: David Li
Date: Fri, 25 Dec 2015 13:21:12 -0700
Subject: Highlight TODOs
---
init.el | 13 +++++++++++++
1 file changed, 13 insertions(+)
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)
--
cgit v1.2.3