(flyspell-mode))))
(add-hook 'c++-mode-hook 'flyspell-prog-mode)
+(add-hook 'lua-mode-hook 'flyspell-prog-mode)
(add-hook 'log-edit-mode-hook 'flyspell-mode)
;; I am a power-user
(fringe :background "gray80")
(ff/date-info-face :foreground "white")
(ff/battery-info-face :foreground "black")
+ (ff/battery-info-alarm-face :foreground "red")
;; (ff/mail-alarm-face :foreground "white" :background "red2")
;; (alarm-vc-face :foreground "black" :background "yellow" :weight 'normal)
(gui-button-face :background "green" :foreground "black")
(region :background "white" :foreground "black")
(ff/date-info-face :foreground "white" :weight 'bold)
(ff/battery-info-face :foreground "black")
+ (ff/battery-info-alarm-face :foreground "red")
;; (ff/mail-alarm-face :foreground "red" :weight 'bold)
(selector/selection :background "yellow")
(gui-button-face :background "green" :foreground "white")
;; (`charging (format "c%d%%" (ff/battery-percent)))
;; (`discharging (format "d%d%%" (ff/battery-percent)))
;; (`unknown "f")
- (`charging (format "↑%d%%" (ff/battery-percent)))
- (`discharging (format "↓%d%%" (ff/battery-percent)))
+
+ (`charging
+ (let ((p (ff/battery-percent)))
+ (if (> p 10)
+ (propertize (format "↑%d%%" p) 'face 'ff/battery-info-face)
+ (propertize (format "↑%d%%" p) 'face 'ff/battery-info-alarm-face))
+ )
+ )
+
+ (`discharging
+ (let ((p (ff/battery-percent)))
+ (if (> p 10)
+ (propertize (format "↓%d%%" p) 'face 'ff/battery-info-face)
+ (propertize (format "↓%d%%" p) 'face 'ff/battery-info-alarm-face))
+ )
+ )
+
;; (`unknown "✱")
(`unknown "F")
(_ "?"))
'((ff/temp-info-string)))
,@(when (ff/battery-info-string)
- '((propertize
- (ff/battery-info-string)
- 'face 'ff/battery-info-face)))
+ '((ff/battery-info-string)))
+
+ ;; '((propertize
+ ;; (ff/battery-info-string)
+ ;; 'face 'ff/battery-info-face)))
" "