Add automatic battery display in modeline on laptops/anything with a battery

This commit is contained in:
Evie Litherland-Smith 2024-02-17 09:36:05 +00:00
parent 64f04fb255
commit f15c364aef

View file

@ -202,6 +202,11 @@
(setq mode-line-compact 'long)
#+end_src
** Battery state for laptops
#+begin_src emacs-lisp
(when (battery-upower)
(display-battery-mode +1))
#+end_src
* Zone
#+begin_src emacs-lisp :tangle yes
(use-package zone
@ -224,4 +229,3 @@
(diff-hl-disable-on-remote t)
(diff-hl-draw-borders nil))
#+end_src