From: Amin Bandali Date: Thu, 5 Sep 2019 13:30:33 +0000 (-0400) Subject: emacs: display time and battery in mode-line X-Git-Url: https://git.shemshak.org/~bandali/configs/commitdiff_plain/6493829267a8bad985faaa661770a1d324dfabb5?ds=inline;hp=212feb206d0d0a6891498030630b0d5da0b76dc9 emacs: display time and battery in mode-line --- 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