# HG changeset patch # User Oleksandr Gavenko # Date 1381333008 -10800 # Node ID bd0c280abe8a34b84f4186e5c9a161255e526d3f # Parent 1fd5c6a97073eadf5447792538a31917ff73b717 Define own faces to remove dependency on compile.el. diff -r 1fd5c6a97073 -r bd0c280abe8a log4-hi-mode.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