aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-28 10:20:40 -0400
committerCraig Jennings <c@cjennings.net>2026-06-28 10:20:40 -0400
commitc2bd174e620f9b9ac9be8738a59ee71ad578f4ce (patch)
tree7213c4e8496bb7b4e049420528e8f359d7c28497
parente88528f85f27a03551c19fc23deca1b1e5aa7d0f (diff)
downloaddotemacs-c2bd174e620f9b9ac9be8738a59ee71ad578f4ce.tar.gz
dotemacs-c2bd174e620f9b9ac9be8738a59ee71ad578f4ce.zip
refactor(weather): load wttrin from the local release/0.4.0 checkout
Load wttrin via :load-path from the local checkout instead of package-vc, so edits in the checkout are testable without a pull. The wttrin-auto-fit-font defcustom exists on release/0.4.0, so the placeholder setq becomes setopt, which also drops the byte-compile free-variable warning the setq carried. The :vc block stays as a commented fallback for production tracking.
-rw-r--r--modules/weather-config.el18
1 files changed, 9 insertions, 9 deletions
diff --git a/modules/weather-config.el b/modules/weather-config.el
index aa43605f..017d9e31 100644
--- a/modules/weather-config.el
+++ b/modules/weather-config.el
@@ -21,10 +21,13 @@
;; ----------------------------------- Wttrin ----------------------------------
(use-package wttrin
- :vc (:url "git@cjennings.net:emacs-wttrin.git"
- :branch "main"
- :rev :newest)
- ;; :load-path "~/code/emacs-wttrin" ;; uncomment + comment :vc above for local dev
+ ;; Load from the local checkout (currently release/0.4.0) so recent wttrin
+ ;; changes are testable without a package pull. Swap back to :vc below for
+ ;; production tracking.
+ :load-path "~/code/emacs-wttrin"
+ ;; :vc (:url "git@cjennings.net:emacs-wttrin.git"
+ ;; :branch "release/0.4.0"
+ ;; :rev :newest)
:demand t ;; REQUIRED: mode-line must start at Emacs startup
:preface
;; Change this to t to enable debug logging
@@ -39,11 +42,8 @@
(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)
+ ;; (wttrin-font-height-min/-max, default 100/200).
+ (setopt 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