Revert "Remove display-battery-mode"

This reverts commit 418e88356e.
This commit is contained in:
Evie Litherland-Smith 2024-06-24 06:36:59 +01:00
parent fa5e148f60
commit b7a86988ad

11
init.el
View file

@ -307,8 +307,15 @@
(line-number-mode -1) (line-number-mode -1)
(column-number-mode -1) (column-number-mode -1)
(size-indication-mode +1) (size-indication-mode +1)
(display-time-mode -1)
(display-battery-mode -1) (require 'battery)
(when (and battery-status-function
(not ( string-match-p "unknown"
( battery-format "%B"
(funcall battery-status-function)))))
(display-battery-mode +1))
(display-time-mode +1)
(use-package diff-hl (use-package diff-hl
:functions (diff-hl-magit-pre-refresh :functions (diff-hl-magit-pre-refresh