projects
/
~bandali
/
configs
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
212feb2
)
emacs: display time and battery in mode-line
author
Amin Bandali
<bandali@gnu.org>
Thu, 5 Sep 2019 13:30:33 +0000
(09:30 -0400)
committer
Amin Bandali
<bandali@gnu.org>
Thu, 5 Sep 2019 13:30:33 +0000
(09:30 -0400)
.emacs.d/init.el
patch
|
blob
|
blame
|
history
diff --git
a/.emacs.d/init.el
b/.emacs.d/init.el
index
2abf0fa
..
8802071
100644
(file)
--- 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
(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
(use-feature fringe
:demand