log4-hi-mode.el
changeset 1078 bd0c280abe8a
parent 1077 1fd5c6a97073
child 1083 d4b063fc0f5e
--- a/log4-hi-mode.el	Wed Oct 09 18:08:28 2013 +0300
+++ b/log4-hi-mode.el	Wed Oct 09 18:36:48 2013 +0300
@@ -1,10 +1,20 @@
 
-(require 'compile)
+(defface log4-hi-error-face
+  '((t :inherit error))
+  "Face for critical message.")
+
+(defface log4-hi-warn-face
+  '((t :inherit warning))
+  "Face for urgent message.")
+
+(defface log4-hi-info-face
+  '((t :inherit success))
+  "Face for informational message.")
 
 (defvar log4-hi-keywords
-  '(("FATAL\\|ERROR" . compilation-error-face)
-    ("WARN" . compilation-warning-face)
-    ("INFO\\|DEBUG\\|TRACE" . compilation-info-face) ))
+  '(("FATAL\\|ERROR" . 'log4-hi-error-face)
+    ("WARN" . 'log4-hi-warn-face)
+    ("INFO\\|DEBUG\\|TRACE" . 'log4-hi-info-face) ))
 
 ;;;###autoload
 (define-minor-mode log4-hi-mode