guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#61713] [PATCH] gnu: Add emacs-display-wttr.


From: conses
Subject: [bug#61713] [PATCH] gnu: Add emacs-display-wttr.
Date: Wed, 22 Feb 2023 18:34:22 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

* gnu/packages/emacs-xyz.scm (emacs-display-wttr): New variable.
---
 gnu/packages/emacs-xyz.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 3b12642bc9..8285bd3868 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -18229,6 +18229,34 @@ (define-public emacs-which-key
 settings).")
     (license license:gpl3+)))
 
+(define-public emacs-display-wttr
+  (package
+    (name "emacs-display-wttr")
+    (version "2.1.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/josegpt/display-wttr";)
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1hmawlnd2l89p48pviwn4khvjs0iry8x67cyqw70r10dd0ybn851"))))
+    (build-system emacs-build-system)
+    (arguments
+     (list #:tests? #t
+           #:test-command #~(list "emacs" "--batch"
+                                  "-l" "display-wttr-test.el"
+                                  "-f" "ert-run-tests-batch-and-exit")))
+    (home-page "https://github.com/josegpt/display-wttr";)
+    (synopsis "Display wttr (weather) in the mode line")
+    (description "This package contains a minor mode that can be toggled.
+It fetches weather information based on your location or on a location set in
+@code{display-wttr-locations} from @uref{https://wttr.in} and then displays it
+on the mode line.  The entry point is @code{display-wttr}.  Heavily inspired by
+@code{display-time}.")
+    (license license:gpl3+)))
+
 (define-public emacs-free-keys
   (package
     (name "emacs-free-keys")
-- 
2.39.1



-- 
Best regards,
conses





reply via email to

[Prev in Thread] Current Thread [Next in Thread]