aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-28 03:06:28 -0400
committerCraig Jennings <c@cjennings.net>2026-06-28 03:06:28 -0400
commita06b9178a27a6cf0524644822491f57398d92c2c (patch)
treee51a846a54bfe93581a8f754c877836e5a122cfd
parente030c24caeca41d733f4c28b882467782ea9f603 (diff)
downloaddotemacs-a06b9178a27a6cf0524644822491f57398d92c2c.tar.gz
dotemacs-a06b9178a27a6cf0524644822491f57398d92c2c.zip
feat(weather): opt into wttrin auto-fit font scaling
I set wttrin-auto-fit-font so the weather font scales to the window width, clamped to wttrin's min/max floor and cap. The option lands when the wttrin package gains the defcustom. Until then it's a harmless no-op the old code ignores, and the later defcustom won't clobber it.
-rw-r--r--modules/weather-config.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/weather-config.el b/modules/weather-config.el
index 416db0323..d2912fedd 100644
--- a/modules/weather-config.el
+++ b/modules/weather-config.el
@@ -39,6 +39,12 @@
;; colors) is unchanged.
(setopt wttrin-display-options "F")
(setopt wttrin-favorite-location "New Orleans, LA")
+ ;; Scale the weather font to fit the window width, clamped to a floor/cap
+ ;; (wttrin-font-height-min/-max, default 100/200). setq (not setopt): the
+ ;; wttrin-auto-fit-font defcustom only exists once feature/center-buffer-text
+ ;; merges to main and the :vc package updates; until then this just sets a
+ ;; value the old code ignores, and the later defcustom won't clobber it.
+ (setq wttrin-auto-fit-font t)
;; Higher-accuracy geolocation via the whereami WiFi-scan script (Google-backed),
;; far better than IP behind a VPN or cellular hotspot. Used by the picker's
;; "Current location (detect)" entry; wttrin falls back to its IP provider if the