mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-06-14 04:11:18 +00:00
Conditionally show battery
This commit is contained in:
parent
2a27705094
commit
04cd529642
1 changed files with 2 additions and 1 deletions
|
|
@ -64,7 +64,8 @@
|
||||||
(setq global-mode-string '(" "))
|
(setq global-mode-string '(" "))
|
||||||
(setq display-time-day-and-date t)
|
(setq display-time-day-and-date t)
|
||||||
|
|
||||||
(display-battery-mode t)
|
(when (ec/load-or-ask-pred 'my-ec/display-battery "Display battery? ")
|
||||||
|
(display-battery-mode t))
|
||||||
(display-time-mode t)
|
(display-time-mode t)
|
||||||
(unless (or (eq 'windows-nt system-type)
|
(unless (or (eq 'windows-nt system-type)
|
||||||
(not (executable-find "df")))
|
(not (executable-find "df")))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue