aboutsummaryrefslogtreecommitdiff
path: root/modules
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
commit494dcd78ba969fd39e2ca7a5244afbb8ba7b0ca6 (patch)
tree4c623307ee67ee315d28ca6a16c38724caa3f009 /modules
parent30bb8f1ee66f1ba40583813cb73c35281271849a (diff)
downloaddotemacs-494dcd78ba969fd39e2ca7a5244afbb8ba7b0ca6.tar.gz
dotemacs-494dcd78ba969fd39e2ca7a5244afbb8ba7b0ca6.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.
Diffstat (limited to 'modules')
-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