diff options
| author | Craig Jennings <c@cjennings.net> | 2025-10-12 11:47:26 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-10-12 11:47:26 -0500 |
| commit | 092304d9e0ccc37cc0ddaa9b136457e56a1cac20 (patch) | |
| tree | ea81999b8442246c978b364dd90e8c752af50db5 /modules/weather-config.el | |
changing repositories
Diffstat (limited to 'modules/weather-config.el')
| -rw-r--r-- | modules/weather-config.el | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/modules/weather-config.el b/modules/weather-config.el new file mode 100644 index 00000000..526a0b41 --- /dev/null +++ b/modules/weather-config.el @@ -0,0 +1,40 @@ +;;; weather-config.el --- -*- lexical-binding: t; coding: utf-8; -*- +;; author: Craig Jennings <c@cjennings.net> +;;; Commentary: +;; +;; 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. +;; +;;; Code: + +;; ----------------------------------- Wttrin ---------------------------------- + +(use-package wttrin + :defer t + :load-path ("~/code/wttrin") + :ensure nil ;; local package + :preface + ;; dependency for wttrin + (use-package xterm-color + :demand t) + :bind + ("M-W" . wttrin) + :custom + (wttrin-unit-system "u") + :config + (setq wttrin-default-locations '( + "New Orleans, LA" + "Athens, GR" + "Berkeley, CA" + "Bury St Edmunds, UK" + "Kyiv, UA" + "Littlestown, PA" + "Soufrière, St Lucia" + "London, GB" + "Naples, IT" + "New York, NY" + ))) + +(provide 'weather-config) +;;; weather-config.el ends here. |
