summaryrefslogtreecommitdiff
path: root/modules/weather-config.el
diff options
context:
space:
mode:
Diffstat (limited to 'modules/weather-config.el')
-rw-r--r--modules/weather-config.el41
1 files changed, 22 insertions, 19 deletions
diff --git a/modules/weather-config.el b/modules/weather-config.el
index 526a0b41..0259d4a9 100644
--- a/modules/weather-config.el
+++ b/modules/weather-config.el
@@ -11,30 +11,33 @@
;; ----------------------------------- Wttrin ----------------------------------
(use-package wttrin
- :defer t
- :load-path ("~/code/wttrin")
- :ensure nil ;; local package
+ ;; Uncomment the next line to use vc-install instead of local directory:
+ ;; :vc (:url "https://github.com/cjennings/emacs-wttrin" :rev :newest)
+ :demand t ;; REQUIRED: mode-line must start at Emacs startup
+ :load-path "/home/cjennings/code/wttrin"
:preface
- ;; dependency for wttrin
- (use-package xterm-color
- :demand t)
+ ;; Change this to t to enable debug logging
+ ;; (setq wttrin-debug t)
:bind
("M-W" . wttrin)
- :custom
- (wttrin-unit-system "u")
:config
+ (setopt wttrin-unit-system "u")
+ (setopt wttrin-favorite-location "New Orleans, LA")
+ (setopt wttrin-mode-line-refresh-interval (* 30 60)) ;; thirty minutes
(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"
- )))
+ "New Orleans, LA"
+ "Berkeley, CA"
+ "Huntington Beach, CA"
+ "Bury St Edmunds, UK"
+ "New York, NY"
+ "Littlestown, PA"
+ "Soufrière, St Lucia"
+ "London, GB"
+ "Naples, IT"
+ "Athens, GR"
+ "Kyiv, UA"
+ ))
+ (wttrin-mode-line-mode 1))
(provide 'weather-config)
;;; weather-config.el ends here.