unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#42892] [PATCH] gnu: Add emacs-fancy-battery.
@ 2020-08-16 18:34 Pierre Langlois
  2020-08-17  7:50 ` bug#42892: " Oleg Pykhalov
  0 siblings, 1 reply; 3+ messages in thread
From: Pierre Langlois @ 2020-08-16 18:34 UTC (permalink / raw)
  To: 42892

[-- Attachment #1: Type: text/plain, Size: 786 bytes --]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hello Guix!

Here's a quick patch adding the "emacs-fancy-battery" package. It's
unmaintained I'm afraid, but it does work and is supported by spaceline
(https://github.com/TheBB/spaceline#fancy-battery) so it's quite nice to
have.

Thanks,
Pierre

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEctU9gYy29KFyWDdMqPyeRH9PfVQFAl85fCsACgkQqPyeRH9P
fVS8Hgf+PAE5GkUUAgzKdCeMwGvH+h5Ti+FpDB4SyYq/d/Wc036jp2d/Un6ArrJu
y1VpebETJ/tnKxk/jEeuZhy6qCsrBZXO9L3ptIXh5OTjppczNLSaCiM9QMXJwXxO
Nj9JWbZIi3jXyJ30nBZNLe+QGn8XuDD7b92FMbWLwtZz2Aa3RTQb/jJkKu+qzfAk
4n4OcFAbv0NgyfhCN8UUAj8l87SDew3iG3P3w1GTLPKY/v9Na6eAvHnwkCEeGPO+
bh9njVgdHhPJghcvJRPlzMykCn5j1yHYObblYceEbMgI9INX3ExNrwr2yqcyrW0Y
e9U+aPFT9/jKKs+Gr3hgNt24T8HsLQ==
=5Og7
-----END PGP SIGNATURE-----

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-emacs-fancy-battery.patch --]
[-- Type: text/x-patch, Size: 1695 bytes --]

From bb53286fef234f0ff6ea45c2cae9741ed31e7e84 Mon Sep 17 00:00:00 2001
From: Pierre Langlois <pierre.langlois@gmx.com>
Date: Sun, 16 Aug 2020 19:19:09 +0100
Subject: [PATCH] gnu: Add emacs-fancy-battery.

* gnu/packages/emacs-xyz.scm (emacs-fancy-battery): New variable.
---
 gnu/packages/emacs-xyz.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 79157e28e9..4dd3af104c 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -15461,6 +15461,28 @@ files.")
 duplicate hook and function names further into a single declarative call.")
     (license license:gpl3+)))

+(define-public emacs-fancy-battery
+  (package
+    (name "emacs-fancy-battery")
+    (version "0.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/emacsorphanage/fancy-battery")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "05lwcwf412m717yhwpjrswqkm8c3i7391rmiwv2k8xc1vk6dpp4g"))))
+    (build-system emacs-build-system)
+    (home-page "https://github.com/emacsorphanage/fancy-battery")
+    (synopsis "Display battery status in Emacs mode line")
+    (description "This package provides @code{fancy-battery-mode} which is
+like the built-in @code{display-battery-mode}, but more fancy.  It just the
+remaining time, uses colours to indicate the status of the battery, and is
+more customizable.")
+    (license license:gpl3)))
+
 (define-public emacs-fancy-narrow
   (package
     (name "emacs-fancy-narrow")
--
2.28.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* bug#42892: [PATCH] gnu: Add emacs-fancy-battery.
  2020-08-16 18:34 [bug#42892] [PATCH] gnu: Add emacs-fancy-battery Pierre Langlois
@ 2020-08-17  7:50 ` Oleg Pykhalov
  2020-08-17 18:40   ` [bug#42892] " Brett Gilio
  0 siblings, 1 reply; 3+ messages in thread
From: Oleg Pykhalov @ 2020-08-17  7:50 UTC (permalink / raw)
  To: Pierre Langlois; +Cc: 42892-done

[-- Attachment #1: Type: text/plain, Size: 346 bytes --]

Hello,

Pierre Langlois <pierre.langlois@gmx.com> writes:

> Here's a quick patch adding the "emacs-fancy-battery" package. It's
> unmaintained I'm afraid, but it does work and is supported by spaceline
> (https://github.com/TheBB/spaceline#fancy-battery) so it's quite nice to
> have.

It compiles with Emacs 27 and 26.  Applied.

Thanks,
Oleg.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [bug#42892] [PATCH] gnu: Add emacs-fancy-battery.
  2020-08-17  7:50 ` bug#42892: " Oleg Pykhalov
@ 2020-08-17 18:40   ` Brett Gilio
  0 siblings, 0 replies; 3+ messages in thread
From: Brett Gilio @ 2020-08-17 18:40 UTC (permalink / raw)
  To: 42892; +Cc: go.wigust, pierre.langlois

Oleg Pykhalov <go.wigust@gmail.com> writes:

> Hello,
>
> Pierre Langlois <pierre.langlois@gmx.com> writes:
>
>> Here's a quick patch adding the "emacs-fancy-battery" package. It's
>> unmaintained I'm afraid, but it does work and is supported by spaceline
>> (https://github.com/TheBB/spaceline#fancy-battery) so it's quite nice to
>> have.
>
> It compiles with Emacs 27 and 26.  Applied.
>
> Thanks,
> Oleg.

I could have sworn we had this in the guix definitions, but it was
removed precisely because it was unmaintained. But looking through the
logs I don't see this. So maybe I am misremembering.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-08-17 18:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-16 18:34 [bug#42892] [PATCH] gnu: Add emacs-fancy-battery Pierre Langlois
2020-08-17  7:50 ` bug#42892: " Oleg Pykhalov
2020-08-17 18:40   ` [bug#42892] " Brett Gilio

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).