Define own faces to remove dependency on compile.el.
--- 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