fix(wpcarro/emacs): Ensure laptop battery shows in modeline

TL;DR:
- support marcus and diogenes in device.el
- define and consume device-laptop? fn

Change-Id: Ia6e1c2666cbd668466ef6b64a7c274d36b79d699
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4392
Tested-by: BuildkiteCI
Reviewed-by: wpcarro <wpcarro@gmail.com>
This commit is contained in:
William Carroll 2021-12-17 12:05:18 -05:00 committed by wpcarro
parent 5695b24f7f
commit 3e501eabb5
2 changed files with 11 additions and 4 deletions

View file

@ -158,10 +158,9 @@
:config
(setq alert-default-style 'notifier))
;; TODO: Should `device-work-laptop?' be a function or a constant that gets set
;; TODO: Should `device-laptop?' be a function or a constant that gets set
;; during initialization?
(when (device-work-laptop?)
(laptop-battery-display))
(when (device-laptop?) (laptop-battery-display))
(if window-system
(progn