diff options
| author | Craig Jennings <c@cjennings.net> | 2025-10-23 00:08:59 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-10-23 00:08:59 -0500 |
| commit | 176f4242ff9df0e181bbf78031e6133b3dea5fbb (patch) | |
| tree | 3f546b8eb3d72c82b3a4b1f412ea6a1667c08956 | |
| parent | 1aba8cc3f9bb88bfaac0c3a760bf3494846d40d3 (diff) | |
| download | dotemacs-176f4242ff9df0e181bbf78031e6133b3dea5fbb.tar.gz dotemacs-176f4242ff9df0e181bbf78031e6133b3dea5fbb.zip | |
style:host-environment: Fix quoting in docstrings
Correct the quoting style in docstrings for commands using backticks
instead of incorrect characters.
| -rw-r--r-- | modules/host-environment.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/host-environment.el b/modules/host-environment.el index fcf871700..6900a8df6 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 |
