summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob L. Kreuze2019-12-24 13:26:37 -0500
committerJakob L. Kreuze2019-12-24 13:26:37 -0500
commit7988b2202a3021c6096ea08fe1d9f73e9afd8902 (patch)
tree728bad68fe5d24ce13d0c8f4bfbff12a00a24e1e
parent3eabb97b7789a2c31975824ffc49232d23a9207f (diff)
Only show the battery status on my laptop.
-rw-r--r--jakob.org5
1 files 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.

© 2015 - 2026 Jakob L. Kreuze