diff options
author | Amin Bandali <bandali@gnu.org> | 2019-09-05 09:30:33 -0400 |
---|---|---|
committer | Amin Bandali <bandali@gnu.org> | 2019-09-05 09:30:33 -0400 |
commit | 6493829267a8bad985faaa661770a1d324dfabb5 (patch) | |
tree | be0c032cac1847e5b164e10b319e31f774bdb890 | |
parent | 212feb206d0d0a6891498030630b0d5da0b76dc9 (diff) | |
download | configs-6493829267a8bad985faaa661770a1d324dfabb5.tar.gz configs-6493829267a8bad985faaa661770a1d324dfabb5.tar.xz configs-6493829267a8bad985faaa661770a1d324dfabb5.zip |
emacs: display time and battery in mode-line
Diffstat (limited to '')
-rw-r--r-- | .emacs.d/init.el | 20 |
1 files 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 |