diff options
| author | Craig Jennings <c@cjennings.net> | 2024-05-10 20:09:29 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2024-05-10 20:09:54 -0500 |
| commit | 586700edc16c058e52227bc85c311d370aa4e8cc (patch) | |
| tree | 7296acf40a93545fd2aa459cc5414fd0201847cb /modules | |
| parent | 2a36988826a25fc7e374cf62d1d21b32e2ab7fa2 (diff) | |
| download | dotemacs-586700edc16c058e52227bc85c311d370aa4e8cc.tar.gz dotemacs-586700edc16c058e52227bc85c311d370aa4e8cc.zip | |
moving wttrin from test code to weather-config.el
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/test-code.el | 15 | ||||
| -rw-r--r-- | modules/weather-config.el | 37 |
2 files changed, 38 insertions, 14 deletions
diff --git a/modules/test-code.el b/modules/test-code.el index 39fd2de2..7a6c80e1 100644 --- a/modules/test-code.el +++ b/modules/test-code.el @@ -12,7 +12,7 @@ (use-package pomm :defer .5 - :bind ("M-p" . pomm) + :bind ("M-p" . pomm) :commands (pomm pomm-third-time)) ;; ----------------------------------- Mpdel ----------------------------------- @@ -74,19 +74,6 @@ (google-this-mode 1) (setq google-this-browse-url-function 'eww-browse-url)) -;; ----------------------------------- Wttrin ---------------------------------- -;; show the weather forecast in an Emacs buffer - -(use-package wttrin - :defer .5 - :load-path ("~/code/emacs-wttrin") - :ensure nil ;; local package - :preface - ;; dependency for wttrin - (use-package xterm-color - :demand t) - :bind - ("M-W" . wttrin)) ;; ------------------------------ ERC Yank To Gist ----------------------------- ;; automatically create a Gist if pasting more than 5 lines 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. |
