summaryrefslogtreecommitdiff
path: root/modules/weather-config.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2024-05-10 20:09:29 -0500
committerCraig Jennings <c@cjennings.net>2024-05-10 20:09:54 -0500
commit586700edc16c058e52227bc85c311d370aa4e8cc (patch)
tree7296acf40a93545fd2aa459cc5414fd0201847cb /modules/weather-config.el
parent2a36988826a25fc7e374cf62d1d21b32e2ab7fa2 (diff)
downloaddotemacs-586700edc16c058e52227bc85c311d370aa4e8cc.tar.gz
dotemacs-586700edc16c058e52227bc85c311d370aa4e8cc.zip
moving wttrin from test code to weather-config.el
Diffstat (limited to 'modules/weather-config.el')
-rw-r--r--modules/weather-config.el37
1 files changed, 37 insertions, 0 deletions
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.