Message ID | 20160712210514.21310-18-rekado@elephly.net |
---|---|
State | New |
Headers |
Received: (qmail 29157 invoked by uid 89); 12 Jul 2016 21:07:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.1 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=dark, theme X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: lists.gnu.org Received: from lists.gnu.org (HELO lists.gnu.org) (208.118.235.17) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 12 Jul 2016 21:07:46 +0000 Received: from localhost ([::1]:43499 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <guix-devel-bounces+patchwork=sourceware.org@gnu.org>) id 1bN4u7-0001BY-OD for patchwork@sourceware.org; Tue, 12 Jul 2016 17:07:43 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56226) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <rekado@elephly.net>) id 1bN4tG-0000WY-8a for guix-devel@gnu.org; Tue, 12 Jul 2016 17:06:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <rekado@elephly.net>) id 1bN4tF-000223-7I for guix-devel@gnu.org; Tue, 12 Jul 2016 17:06:50 -0400 Received: from sender163-mail.zoho.com ([74.201.84.163]:24269) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rekado@elephly.net>) id 1bN4tE-00021w-To for guix-devel@gnu.org; Tue, 12 Jul 2016 17:06:49 -0400 Received: from localhost (xd9ba42ea.dyn.telefonica.de [217.186.66.234]) by mx.zohomail.com with SMTPS id 1468357604858325.57138926752793; Tue, 12 Jul 2016 14:06:44 -0700 (PDT) From: Ricardo Wurmus <rekado@elephly.net> To: guix-devel@gnu.org Subject: [PATCH 17/17] gnu: Add emacs-solarized-theme. Date: Tue, 12 Jul 2016 23:05:14 +0200 Message-Id: <20160712210514.21310-18-rekado@elephly.net> X-Mailer: git-send-email 2.8.4 In-Reply-To: <20160712210514.21310-1-rekado@elephly.net> References: <20160712210514.21310-1-rekado@elephly.net> X-ZohoMail: Z_26063301 SPT_1 Z_26062608 SPT_0 X-Zoho-Virus-Status: 2 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 74.201.84.163 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." <guix-devel.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-devel>, <mailto:guix-devel-request@gnu.org?subject=unsubscribe> List-Archive: <http://lists.gnu.org/archive/html/guix-devel/> List-Post: <mailto:guix-devel@gnu.org> List-Help: <mailto:guix-devel-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-devel>, <mailto:guix-devel-request@gnu.org?subject=subscribe> Errors-To: guix-devel-bounces+patchwork=sourceware.org@gnu.org Sender: "Guix-devel" <guix-devel-bounces+patchwork=sourceware.org@gnu.org> |
Commit Message
Ricardo Wurmus
July 12, 2016, 9:05 p.m. UTC
* gnu/packages/emacs.scm (emacs-solarized-theme): New variable. --- gnu/packages/emacs.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)
Comments
Ricardo Wurmus writes: > * gnu/packages/emacs.scm (emacs-solarized-theme): New variable. > --- > gnu/packages/emacs.scm | 24 ++++++++++++++++++++++++ > 1 file changed, 24 insertions(+) > > diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm > index 2c92756..4f2d5ca 100644 > --- a/gnu/packages/emacs.scm > +++ b/gnu/packages/emacs.scm > @@ -2086,6 +2086,30 @@ number.") > It is built on top of the custom theme support in Emacs 24 or later.") > (license license:gpl3+))) > > +(define-public emacs-solarized-theme > + (package > + (name "emacs-solarized-theme") > + (version "1.2.2") > + (source (origin > + (method url-fetch) > + (uri (string-append "https://github.com/bbatsov/solarized-emacs/" > + "archive/v" version ".tar.gz")) > + (file-name (string-append name "-" version ".tar.gz")) > + (sha256 > + (base32 > + "1ha3slc6d9wi9ilkhmwrzkvf308n6ph7b0k69pk369s9304awxzx")))) > + (build-system emacs-build-system) > + (propagated-inputs > + `(("emacs-dash" ,emacs-dash) > + ("emacs-f" ,emacs-f) > + ("emacs-s" ,emacs-s))) > + (home-page "http://github.com/bbatsov/solarized-emacs") > + (synopsis "Port of the Solarized theme for Emacs") > + (description > + "Solarized for Emacs is a port of the Solarized theme for Vim. This > +package provides a light and a dark variant.") > + (license license:gpl3+))) > + > (define-public emacs-smartparens > (package > (name "emacs-smartparens") After installing this package I tried to `M-x load-theme solarized'. That resulted in the error: `Undefined Custom theme solarized'. However, `solarized-dark' works fine. Could you verify that `M-x load-theme solarized' works on your end? Kind regards, Roel Janssen
Roel Janssen <roel@gnu.org> writes: > Ricardo Wurmus writes: > >> * gnu/packages/emacs.scm (emacs-solarized-theme): New variable. >> --- >> gnu/packages/emacs.scm | 24 ++++++++++++++++++++++++ >> 1 file changed, 24 insertions(+) >> >> diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm >> index 2c92756..4f2d5ca 100644 >> --- a/gnu/packages/emacs.scm >> +++ b/gnu/packages/emacs.scm >> @@ -2086,6 +2086,30 @@ number.") >> It is built on top of the custom theme support in Emacs 24 or later.") >> (license license:gpl3+))) >> >> +(define-public emacs-solarized-theme >> + (package >> + (name "emacs-solarized-theme") >> + (version "1.2.2") >> + (source (origin >> + (method url-fetch) >> + (uri (string-append "https://github.com/bbatsov/solarized-emacs/" >> + "archive/v" version ".tar.gz")) >> + (file-name (string-append name "-" version ".tar.gz")) >> + (sha256 >> + (base32 >> + "1ha3slc6d9wi9ilkhmwrzkvf308n6ph7b0k69pk369s9304awxzx")))) >> + (build-system emacs-build-system) >> + (propagated-inputs >> + `(("emacs-dash" ,emacs-dash) >> + ("emacs-f" ,emacs-f) >> + ("emacs-s" ,emacs-s))) >> + (home-page "http://github.com/bbatsov/solarized-emacs") >> + (synopsis "Port of the Solarized theme for Emacs") >> + (description >> + "Solarized for Emacs is a port of the Solarized theme for Vim. This >> +package provides a light and a dark variant.") >> + (license license:gpl3+))) >> + >> (define-public emacs-smartparens >> (package >> (name "emacs-smartparens") > > After installing this package I tried to `M-x load-theme solarized'. That > resulted in the error: `Undefined Custom theme solarized'. > > However, `solarized-dark' works fine. > > Could you verify that `M-x load-theme solarized' works on your end? I’m using “solarized-light” only. Is “M-x load-theme solarized” even supposed to work? ~~ Ricardo
Ricardo Wurmus writes: > Roel Janssen <roel@gnu.org> writes: > >> Ricardo Wurmus writes: >> >>> * gnu/packages/emacs.scm (emacs-solarized-theme): New variable. >>> --- >>> gnu/packages/emacs.scm | 24 ++++++++++++++++++++++++ >>> 1 file changed, 24 insertions(+) >>> >>> diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm >>> index 2c92756..4f2d5ca 100644 >>> --- a/gnu/packages/emacs.scm >>> +++ b/gnu/packages/emacs.scm >>> @@ -2086,6 +2086,30 @@ number.") >>> It is built on top of the custom theme support in Emacs 24 or later.") >>> (license license:gpl3+))) >>> >>> +(define-public emacs-solarized-theme >>> + (package >>> + (name "emacs-solarized-theme") >>> + (version "1.2.2") >>> + (source (origin >>> + (method url-fetch) >>> + (uri (string-append "https://github.com/bbatsov/solarized-emacs/" >>> + "archive/v" version ".tar.gz")) >>> + (file-name (string-append name "-" version ".tar.gz")) >>> + (sha256 >>> + (base32 >>> + "1ha3slc6d9wi9ilkhmwrzkvf308n6ph7b0k69pk369s9304awxzx")))) >>> + (build-system emacs-build-system) >>> + (propagated-inputs >>> + `(("emacs-dash" ,emacs-dash) >>> + ("emacs-f" ,emacs-f) >>> + ("emacs-s" ,emacs-s))) >>> + (home-page "http://github.com/bbatsov/solarized-emacs") >>> + (synopsis "Port of the Solarized theme for Emacs") >>> + (description >>> + "Solarized for Emacs is a port of the Solarized theme for Vim. This >>> +package provides a light and a dark variant.") >>> + (license license:gpl3+))) >>> + >>> (define-public emacs-smartparens >>> (package >>> (name "emacs-smartparens") >> >> After installing this package I tried to `M-x load-theme solarized'. That >> resulted in the error: `Undefined Custom theme solarized'. >> >> However, `solarized-dark' works fine. >> >> Could you verify that `M-x load-theme solarized' works on your end? > > I’m using “solarized-light” only. Is “M-x load-theme solarized” > even supposed to work? The auto-completion shows three themes: solarized, solarized-light, and solarized-dark. The description says this package provides two themes: light and dark. I guess it works as it is supposed to, because the description tells there are two variants. So, the patch is fine with me. Kind regards, Roel Janssen
Roel Janssen (2016-07-13 23:50 +0300) wrote: > Ricardo Wurmus writes: > >> Roel Janssen <roel@gnu.org> writes: [...] >>> After installing this package I tried to `M-x load-theme solarized'. That >>> resulted in the error: `Undefined Custom theme solarized'. >>> >>> However, `solarized-dark' works fine. >>> >>> Could you verify that `M-x load-theme solarized' works on your end? >> >> I’m using “solarized-light” only. Is “M-x load-theme solarized” >> even supposed to work? > > The auto-completion shows three themes: solarized, solarized-light, and > solarized-dark. The description says this package provides two themes: > light and dark. The code also says there are only 2 themes (light and dark). > I guess it works as it is supposed to, because the description tells > there are two variants. Right, "M-x load-theme solarized" is not supposed to work. There is no such theme. As for the false completion you mentioned, it happens because of this file: https://github.com/bbatsov/solarized-emacs/blob/master/solarized-theme.el "M-x load-theme" uses 'custom-available-themes' function to define a list of themes and since there is "solarized-theme.el" file, 'solarized' symbol also appears in this list (but there is no "solarized" theme). I would say this is a (tiny) solarized bug. I don't see a purpose in this "solarized-theme.el" file (probably historical reasons).
Ricardo Wurmus (2016-07-13 00:05 +0300) wrote: > * gnu/packages/emacs.scm (emacs-solarized-theme): New variable. > --- > gnu/packages/emacs.scm | 24 ++++++++++++++++++++++++ > 1 file changed, 24 insertions(+) > > > diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm > index 2c92756..4f2d5ca 100644 > --- a/gnu/packages/emacs.scm > +++ b/gnu/packages/emacs.scm > @@ -2086,6 +2086,30 @@ number.") > It is built on top of the custom theme support in Emacs 24 or later.") > (license license:gpl3+))) > > +(define-public emacs-solarized-theme > + (package > + (name "emacs-solarized-theme") > + (version "1.2.2") > + (source (origin > + (method url-fetch) > + (uri (string-append "https://github.com/bbatsov/solarized-emacs/" > + "archive/v" version ".tar.gz")) > + (file-name (string-append name "-" version ".tar.gz")) > + (sha256 > + (base32 > + "1ha3slc6d9wi9ilkhmwrzkvf308n6ph7b0k69pk369s9304awxzx")))) > + (build-system emacs-build-system) > + (propagated-inputs > + `(("emacs-dash" ,emacs-dash) > + ("emacs-f" ,emacs-f) > + ("emacs-s" ,emacs-s))) There is no need in "f" and "s", this package depends only on "dash" library. Otherwise LGTM. > + (home-page "http://github.com/bbatsov/solarized-emacs") > + (synopsis "Port of the Solarized theme for Emacs") > + (description > + "Solarized for Emacs is a port of the Solarized theme for Vim. This > +package provides a light and a dark variant.") > + (license license:gpl3+))) > + > (define-public emacs-smartparens > (package > (name "emacs-smartparens")
Alex Kost (2016-07-15 16:57 +0300) wrote: > Ricardo Wurmus (2016-07-13 00:05 +0300) wrote: > >> * gnu/packages/emacs.scm (emacs-solarized-theme): New variable. >> --- >> gnu/packages/emacs.scm | 24 ++++++++++++++++++++++++ >> 1 file changed, 24 insertions(+) >> >> >> diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm >> index 2c92756..4f2d5ca 100644 >> --- a/gnu/packages/emacs.scm >> +++ b/gnu/packages/emacs.scm >> @@ -2086,6 +2086,30 @@ number.") >> It is built on top of the custom theme support in Emacs 24 or later.") >> (license license:gpl3+))) >> >> +(define-public emacs-solarized-theme >> + (package >> + (name "emacs-solarized-theme") >> + (version "1.2.2") >> + (source (origin >> + (method url-fetch) >> + (uri (string-append "https://github.com/bbatsov/solarized-emacs/" >> + "archive/v" version ".tar.gz")) >> + (file-name (string-append name "-" version ".tar.gz")) >> + (sha256 >> + (base32 >> + "1ha3slc6d9wi9ilkhmwrzkvf308n6ph7b0k69pk369s9304awxzx")))) >> + (build-system emacs-build-system) >> + (propagated-inputs >> + `(("emacs-dash" ,emacs-dash) >> + ("emacs-f" ,emacs-f) >> + ("emacs-s" ,emacs-s))) > > There is no need in "f" and "s", this package depends only on "dash" > library. Otherwise LGTM. <cough> you seem to forget to remove "f" and "s" in commit 012c8b3 :-)
Alex Kost <alezost@gmail.com> writes: > Alex Kost (2016-07-15 16:57 +0300) wrote: > >> Ricardo Wurmus (2016-07-13 00:05 +0300) wrote: >> >>> * gnu/packages/emacs.scm (emacs-solarized-theme): New variable. >>> --- >>> gnu/packages/emacs.scm | 24 ++++++++++++++++++++++++ >>> 1 file changed, 24 insertions(+) >>> >>> >>> diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm >>> index 2c92756..4f2d5ca 100644 >>> --- a/gnu/packages/emacs.scm >>> +++ b/gnu/packages/emacs.scm >>> @@ -2086,6 +2086,30 @@ number.") >>> It is built on top of the custom theme support in Emacs 24 or later.") >>> (license license:gpl3+))) >>> >>> +(define-public emacs-solarized-theme >>> + (package >>> + (name "emacs-solarized-theme") >>> + (version "1.2.2") >>> + (source (origin >>> + (method url-fetch) >>> + (uri (string-append "https://github.com/bbatsov/solarized-emacs/" >>> + "archive/v" version ".tar.gz")) >>> + (file-name (string-append name "-" version ".tar.gz")) >>> + (sha256 >>> + (base32 >>> + "1ha3slc6d9wi9ilkhmwrzkvf308n6ph7b0k69pk369s9304awxzx")))) >>> + (build-system emacs-build-system) >>> + (propagated-inputs >>> + `(("emacs-dash" ,emacs-dash) >>> + ("emacs-f" ,emacs-f) >>> + ("emacs-s" ,emacs-s))) >> >> There is no need in "f" and "s", this package depends only on "dash" >> library. Otherwise LGTM. > > <cough> you seem to forget to remove "f" and "s" in commit 012c8b3 :-) Argh, you are right! I’m sorry :( ~~ Ricardo
diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index 2c92756..4f2d5ca 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -2086,6 +2086,30 @@ number.") It is built on top of the custom theme support in Emacs 24 or later.") (license license:gpl3+))) +(define-public emacs-solarized-theme + (package + (name "emacs-solarized-theme") + (version "1.2.2") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/bbatsov/solarized-emacs/" + "archive/v" version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1ha3slc6d9wi9ilkhmwrzkvf308n6ph7b0k69pk369s9304awxzx")))) + (build-system emacs-build-system) + (propagated-inputs + `(("emacs-dash" ,emacs-dash) + ("emacs-f" ,emacs-f) + ("emacs-s" ,emacs-s))) + (home-page "http://github.com/bbatsov/solarized-emacs") + (synopsis "Port of the Solarized theme for Emacs") + (description + "Solarized for Emacs is a port of the Solarized theme for Vim. This +package provides a light and a dark variant.") + (license license:gpl3+))) + (define-public emacs-smartparens (package (name "emacs-smartparens")