aboutsummaryrefslogtreecommitdiff
path: root/modules
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
commitd31c86b6b1e9705d8d9178f7021c536a6db8c137 (patch)
treea406fbdbe90d14a3372b056a3a8eb71f4df85310 /modules
parentcdb9c6dc25a1ebb826d2d5bf3a97de2ffcbca729 (diff)
downloaddotemacs-d31c86b6b1e9705d8d9178f7021c536a6db8c137.tar.gz
dotemacs-d31c86b6b1e9705d8d9178f7021c536a6db8c137.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.
Diffstat (limited to 'modules')
-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 aa43605f4..017d9e31b 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