From 6493829267a8bad985faaa661770a1d324dfabb5 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Thu, 5 Sep 2019 09:30:33 -0400 Subject: [PATCH 1/1] emacs: display time and battery in mode-line --- .emacs.d/init.el | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 2abf0fa..8802071 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -395,16 +395,18 @@ For disabling the behaviour for certain buffers and/or modes." (global-auto-revert-non-file-buffers nil)) ;; time and battery in mode-line -(comment - (use-feature time - :init - (setq display-time-default-load-average nil) - :config - (display-time-mode)) +(use-feature time + :config + (display-time-mode) + :custom + (display-time-default-load-average nil) + (display-time-format "%a %b %-e, %-l:%M%P")) - (use-feature battery - :config - (display-battery-mode))) +(use-feature battery + :config + (display-battery-mode) + :custom + (battery-mode-line-format " %b%p%% %t")) (use-feature fringe :demand -- 2.20.1