diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-28 03:06:28 -0400 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-28 03:06:28 -0400 |
| commit | c245baeeddf32cb1c8bbb108f968c797207213c4 (patch) | |
| tree | 2968d7bfeaff9fb451208560bb575966c0873289 /modules | |
| parent | 03f684c1ef20b50d7d7af513b0bc3f74610e3a45 (diff) | |
| download | dotemacs-c245baeeddf32cb1c8bbb108f968c797207213c4.tar.gz dotemacs-c245baeeddf32cb1c8bbb108f968c797207213c4.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.el | 6 |
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 |
