Add automatic battery display in modeline on laptops/anything with a battery
This commit is contained in:
parent
64f04fb255
commit
f15c364aef
|
@ -202,6 +202,11 @@
|
||||||
|
|
||||||
(setq mode-line-compact 'long)
|
(setq mode-line-compact 'long)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
** Battery state for laptops
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(when (battery-upower)
|
||||||
|
(display-battery-mode +1))
|
||||||
|
#+end_src
|
||||||
* Zone
|
* Zone
|
||||||
#+begin_src emacs-lisp :tangle yes
|
#+begin_src emacs-lisp :tangle yes
|
||||||
(use-package zone
|
(use-package zone
|
||||||
|
@ -224,4 +229,3 @@
|
||||||
(diff-hl-disable-on-remote t)
|
(diff-hl-disable-on-remote t)
|
||||||
(diff-hl-draw-borders nil))
|
(diff-hl-draw-borders nil))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue