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
commit24481542ea5d58bae3b4535ac20d79e86b3bcbd5 (patch)
tree12263776603f52f624ba35e4069ac8c1f48bfe8c /modules
parent18a1b4294a857a0e975a1aa4f11d1824ccdcc121 (diff)
downloaddotemacs-24481542ea5d58bae3b4535ac20d79e86b3bcbd5.tar.gz
dotemacs-24481542ea5d58bae3b4535ac20d79e86b3bcbd5.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