Patchwork gnu: Add emacs-ahungry-theme.

login
register
mail settings
Submitter Alex Vong
Date Aug. 25, 2016, 6:04 a.m.
Message ID <87bn0hv0yc.fsf@gmail.com>
Download mbox | patch
Permalink /patch/14925/
State New
Headers show

Comments

Alex Vong - Aug. 25, 2016, 6:04 a.m.
Hi,

This patch adds ahungry theme from elpa, which I am currently using. I
test the patch by `./pre-inst-env guix install emacs-ahungry-theme' and
launching emacs. It works fine on my machine.

Cheers,
Alex
Alex Kost - Aug. 26, 2016, 8 a.m.
Alex Vong (2016-08-25 09:04 +0300) wrote:

> Hi,
>
> This patch adds ahungry theme from elpa, which I am currently using. I
> test the patch by `./pre-inst-env guix install emacs-ahungry-theme' and
> launching emacs. It works fine on my machine.

I placed it right after zenburn and solarized themes, and applied as
e7761186c3, thanks!

> +(define-public emacs-ahungry-theme
> +  (package
> +    (name "emacs-ahungry-theme")
> +    (version "1.3.0")
> +    (source
> +     (origin (method url-fetch)
> +             (uri (string-append "http://elpa.gnu.org/packages/ahungry-theme-"
> +                                 version ".tar"))
> +             (sha256
> +              (base32 "1p2zaq0s4bbl5cx6wyab24wamw7m0mysb0v47dqjmnvfc25z84rq"))))
> +    (build-system emacs-build-system)
> +    (home-page "https://github.com/ahungry/color-theme-ahungry")
> +    (synopsis
> +     "Ahungry color theme for Emacs.  Make sure to (load-theme 'ahungry).")

The second sentence is not needed (especially in synopsis), I removed it.

> +    (description "Bright and bold color theme for GNU Emacs.
> +
> +If you load it from a terminal, you will be able to make use of the transparent
> +background.  If you load it from a GUI, it will default to a dark background.")

I rephrased the description a bit.
Alex Vong - Aug. 26, 2016, 9:49 a.m.
Alex Kost <alezost@gmail.com> writes:

> Alex Vong (2016-08-25 09:04 +0300) wrote:
>
>> Hi,
>>
>> This patch adds ahungry theme from elpa, which I am currently using. I
>> test the patch by `./pre-inst-env guix install emacs-ahungry-theme' and
>> launching emacs. It works fine on my machine.
>
> I placed it right after zenburn and solarized themes, and applied as
> e7761186c3, thanks!
>
>> +(define-public emacs-ahungry-theme
>> +  (package
>> +    (name "emacs-ahungry-theme")
>> +    (version "1.3.0")
>> +    (source
>> +     (origin (method url-fetch)
>> + (uri (string-append "http://elpa.gnu.org/packages/ahungry-theme-"
>> +                                 version ".tar"))
>> +             (sha256
>> + (base32 "1p2zaq0s4bbl5cx6wyab24wamw7m0mysb0v47dqjmnvfc25z84rq"))))
>> +    (build-system emacs-build-system)
>> +    (home-page "https://github.com/ahungry/color-theme-ahungry")
>> +    (synopsis
>> +     "Ahungry color theme for Emacs.  Make sure to (load-theme 'ahungry).")
>
> The second sentence is not needed (especially in synopsis), I removed it.
>
>> +    (description "Bright and bold color theme for GNU Emacs.
>> +
>> +If you load it from a terminal, you will be able to make use of the
>> transparent
>> +background.  If you load it from a GUI, it will default to a dark
>> background.")
>
> I rephrased the description a bit.

Thank you!

Patch

From ce1481926e96728327bd7e517d8d2bdfa990b989 Mon Sep 17 00:00:00 2001
From: Alex Vong <alexvong1995@gmail.com>
Date: Thu, 25 Aug 2016 13:49:31 +0800
Subject: [PATCH] gnu: Add emacs-ahungry-theme.

* gnu/packages/emacs.scm (emacs-ahungry-theme): New variable.
---
 gnu/packages/emacs.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index dfe5ce7..d072141 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -15,6 +15,7 @@ 
 ;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
 ;;; Copyright © 2016 Nicolas Goaziou <mail@nicolasgoaziou.fr>
+;;; Copyright © 2016 Alex Vong <alexvong1995@gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -2981,3 +2982,23 @@  lists, and project planning with a fast and effective plain-text system.  It
 also is an authoring system with unique support for literate programming and
 reproducible research.")
     (license license:gpl3+)))
+
+(define-public emacs-ahungry-theme
+  (package
+    (name "emacs-ahungry-theme")
+    (version "1.3.0")
+    (source
+     (origin (method url-fetch)
+             (uri (string-append "http://elpa.gnu.org/packages/ahungry-theme-"
+                                 version ".tar"))
+             (sha256
+              (base32 "1p2zaq0s4bbl5cx6wyab24wamw7m0mysb0v47dqjmnvfc25z84rq"))))
+    (build-system emacs-build-system)
+    (home-page "https://github.com/ahungry/color-theme-ahungry")
+    (synopsis
+     "Ahungry color theme for Emacs.  Make sure to (load-theme 'ahungry).")
+    (description "Bright and bold color theme for GNU Emacs.
+
+If you load it from a terminal, you will be able to make use of the transparent
+background.  If you load it from a GUI, it will default to a dark background.")
+    (license license:gpl3+)))
-- 
2.9.3