aboutsummaryrefslogtreecommitdiff
path: root/modules/weather-config.el
diff options
context:
space:
mode:
Diffstat (limited to 'modules/weather-config.el')
-rw-r--r--modules/weather-config.el21
1 files changed, 13 insertions, 8 deletions
diff --git a/modules/weather-config.el b/modules/weather-config.el
index 416db0323..017d9e31b 100644
--- a/modules/weather-config.el
+++ b/modules/weather-config.el
@@ -1,4 +1,4 @@
-;;; weather-config.el --- -*- lexical-binding: t; coding: utf-8; -*-
+;;; weather-config.el --- wttrin weather display and modeline setup -*- lexical-binding: t; coding: utf-8; -*-
;; author: Craig Jennings <c@cjennings.net>
;;; Commentary:
;;
@@ -11,9 +11,8 @@
;; Runtime requires: none (configures packages via use-package).
;; Direct test load: yes.
;;
-;; Call M-W to open wttrin with your preferred location list immediately.
-;; Adjust the city list by editing `wttrin-default-locations` or answering wttrin prompts when asked.
-;; Forecasts arrive in an Emacs buffer, so you can stay keyboard-only while checking weather.
+;; Configures wttrin for favorite-location forecasts, mode-line weather, and
+;; whereami-backed geolocation. M-S-w opens the weather buffer.
;;
;;; Code:
@@ -22,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,6 +41,9 @@
;; 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).
+ (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