From 586700edc16c058e52227bc85c311d370aa4e8cc Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Fri, 10 May 2024 20:09:29 -0500 Subject: moving wttrin from test code to weather-config.el --- modules/weather-config.el | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 modules/weather-config.el (limited to 'modules/weather-config.el') diff --git a/modules/weather-config.el b/modules/weather-config.el new file mode 100644 index 00000000..70fda92c --- /dev/null +++ b/modules/weather-config.el @@ -0,0 +1,37 @@ +;;; weather-config.el --- -*- lexical-binding: t; -*- + +;;; Commentary: +;; + +;;; Code: + +;; ----------------------------------- Wttrin ---------------------------------- +;; show the weather forecast in an Emacs buffer + +(use-package wttrin + :defer .5 + :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 '( + "Athens, GR" + "Berkeley, CA" + "Bury St Edmunds, UK" + "Kyiv, UA" + "Littlestown, PA" + "London, GB" + "Naples, IT" + "New Orleans, LA" + "New York, NY" + ))) + +(provide 'weather-config) +;;; weather-config.el ends here. -- cgit v1.2.3