summaryrefslogtreecommitdiffstats
path: root/.emacs.d/init.el
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.emacs.d/init.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index 0c35928..97f515e 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -215,9 +215,10 @@ plain variables. This means that `setopt' will execute any
(unless (display-graphic-p)
(display-time-mode)))
+(defvar b/battery-format "%p%b %t")
(run-with-idle-timer 0.1 nil #'require 'battery)
(with-eval-after-load 'battery
- (setopt battery-mode-line-format " [%b%p%% %t]")
+ (setopt battery-mode-line-format (format " [%s]" b/battery-format))
(display-battery-mode))
(run-with-idle-timer 0.5 nil #'require 'winner)