summaryrefslogtreecommitdiff
path: root/modules/host-environment.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-10-23 00:08:59 -0500
committerCraig Jennings <c@cjennings.net>2025-10-23 00:08:59 -0500
commit70f64261168d6f508a318a0159933a84e0997e1e (patch)
tree30cceb3a87670ff4829596a109fd5b484610d0da /modules/host-environment.el
parent66499a72f255286211b79b2fbc9ed99e5d874af2 (diff)
style:host-environment: Fix quoting in docstrings
Correct the quoting style in docstrings for commands using backticks instead of incorrect characters.
Diffstat (limited to 'modules/host-environment.el')
-rw-r--r--modules/host-environment.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/host-environment.el b/modules/host-environment.el
index fcf87170..6900a8df 100644
--- a/modules/host-environment.el
+++ b/modules/host-environment.el
@@ -11,6 +11,7 @@
(defvar battery-status-function)
+
(defun env-laptop-p ()
"Non-nil if a battery is present."
(when (and (require 'battery nil 'noerror)
@@ -56,7 +57,7 @@
(defun cj/match-localtime-to-zoneinfo ()
"Detect system timezone by comparing /etc/localtime with zoneinfo files.
This replicates the shell command:
-find /usr/share/zoneinfo -type f ! -name \='posixrules\=' \\
+find /usr/share/zoneinfo -type f ! -name `posixrules' \\
-exec cmp -s {} /etc/localtime \\;
-print | sed -e \='s@.*/zoneinfo/@@\=' | head -n1"
(when (and (file-exists-p "/etc/localtime")
@@ -86,7 +87,7 @@ find /usr/share/zoneinfo -type f ! -name \='posixrules\=' \\
result))))
(defun cj/detect-system-timezone ()
- "Detect the system timezone in IANA format (e.g., \='America/Los_Angeles\=').
+ "Detect the system timezone in IANA format (e.g., `America/Los_Angeles').
Tries multiple methods in order of reliability:
1. Environment variable TZ
2. File comparison of /etc/localtime with zoneinfo database