;; Contact <francois@fleuret.org> for comments & bug reports ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+(defface tc/modeline-face
+ '((((background light)) (:foreground "blue4"))
+ (((background dark)) (:foreground "cyan")))
+ "The face for the alarm-vc modeline message.")
+
;; Counts the number of words and characters between the previous and
;; the next line of '-' (with at least four '-' in each line)
(match-beginning 0)))))
(when (and a b)
- (format "%dw %dc " (count-words a b) (- b a))
+ (propertize (format "%dw %dc " (count-words a b) (- b a))
+ 'face 'tc/modeline-face)
)))
;; Add the said counters into the modeline