From 7988b2202a3021c6096ea08fe1d9f73e9afd8902 Mon Sep 17 00:00:00 2001 From: Jakob L. Kreuze Date: Tue, 24 Dec 2019 13:26:37 -0500 Subject: Only show the battery status on my laptop. --- jakob.org | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jakob.org b/jakob.org index 9352b64..dc6b0fa 100644 --- a/jakob.org +++ b/jakob.org @@ -822,8 +822,9 @@ sequences, the percent symbol has to be escaped twice -- once for =battery-format=, and once for =mode-line-format=. #+BEGIN_SRC elisp -(display-battery-mode +1) -(setq battery-mode-line-format "%L: %t, %p%%%%") +(when (string= (system-name) "Upsilon") + (display-battery-mode +1) + (setq battery-mode-line-format "%L: %t, %p%%%%")) #+END_SRC Use an =:eval= form to align modeline contents. -- cgit v1.3