Message ID | eOjW4-qn1Zv6eHF0qV0YA8UnOd3rnQqJcuim3jpooWykVlSTjMWtrrtKhMc0ZZ-o1y8J2FMQriORYSN_eGnHN7254U5aQZGXjvRT-VuSppg=@protonmail.com |
---|---|
State | New |
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 38ED527BBEA; Fri, 15 Apr 2022 16:01:14 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id ECF6F27BBE9 for <patchwork@mira.cbaines.net>; Fri, 15 Apr 2022 16:01:13 +0100 (BST) Received: from localhost ([::1]:37358 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org>) id 1nfNRh-0004X9-4r for patchwork@mira.cbaines.net; Fri, 15 Apr 2022 11:01:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39994) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1nfN1R-0005Dn-LG for guix-patches@gnu.org; Fri, 15 Apr 2022 10:34:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37908) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1nfN1P-00034X-Cu for guix-patches@gnu.org; Fri, 15 Apr 2022 10:34:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1nfN1O-00082v-AB for guix-patches@gnu.org; Fri, 15 Apr 2022 10:34:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54953] [PATCH] gnu: Add emacs-nano-theme Resent-From: Maya <maya.omase@protonmail.com> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 15 Apr 2022 14:34:02 +0000 Resent-Message-ID: <handler.54953.B.165003320130869@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54953 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54953@debbugs.gnu.org X-Debbugs-Original-To: "guix-patches@gnu.org" <guix-patches@gnu.org> Received: via spool by submit@debbugs.gnu.org id=B.165003320130869 (code B ref -1); Fri, 15 Apr 2022 14:34:02 +0000 Received: (at submit) by debbugs.gnu.org; 15 Apr 2022 14:33:21 +0000 Received: from localhost ([127.0.0.1]:60038 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1nfN0f-00081m-KV for submit@debbugs.gnu.org; Fri, 15 Apr 2022 10:33:20 -0400 Received: from lists.gnu.org ([209.51.188.17]:42314) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <maya.omase@protonmail.com>) id 1nfIb9-0003nj-CB for submit@debbugs.gnu.org; Fri, 15 Apr 2022 05:50:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36294) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <maya.omase@protonmail.com>) id 1nfIb7-0004q7-Nl for guix-patches@gnu.org; Fri, 15 Apr 2022 05:50:38 -0400 Received: from mail-4325.protonmail.ch ([185.70.43.25]:18953) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <maya.omase@protonmail.com>) id 1nfIb3-0006Iu-Eu for guix-patches@gnu.org; Fri, 15 Apr 2022 05:50:35 -0400 Date: Fri, 15 Apr 2022 09:50:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1650016222; bh=X6tXlGhrbxQ4KOrPga/KMKRc7tXcaNnUMjVD9bFROgg=; h=Date:To:From:Reply-To:Subject:Message-ID:From:To:Cc:Date:Subject: Reply-To:Feedback-ID:Message-ID; b=VGtO77nyA3BVPPMvJWoW7oWwEvHOXhY/MqfOUvjHAtHb6JhlUZG/aNfPkNOugZfhM 5liojwtdXVypoVt+hQOPMe6DRWFwioRyUxtRrxsih79sz9+GTqj6ZJzDHzF6Q3oSQb iEJVNm2UE01BkrG+mN4Jim2gMzMjoqhuKp+T0KOqiG6mk5ig5CIWOUMKc+hPyZ3rH1 RfGAOgJ8oj6cjJotXhmdi6Fh3uehGPVUQThbSgmyVywiypucnaAC11XnYSbiEgRRvB oYBBfr4Xo0Vpnx5AX9ZpZl9BGoZLiZ0QP7C6Nmn/KptXthnsGLjx9ykUZy0ArqnQZW 1PWTyIuQRfhqw== Message-ID: <eOjW4-qn1Zv6eHF0qV0YA8UnOd3rnQqJcuim3jpooWykVlSTjMWtrrtKhMc0ZZ-o1y8J2FMQriORYSN_eGnHN7254U5aQZGXjvRT-VuSppg=@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.43.25; envelope-from=maya.omase@protonmail.com; helo=mail-4325.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 15 Apr 2022 10:33:16 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Fri, 15 Apr 2022 11:00:20 -0400 X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> Reply-to: Maya <maya.omase@protonmail.com> X-ACL-Warn: , Maya via Guix-patches <guix-patches@gnu.org> From: Maya via Guix-patches via <guix-patches@gnu.org> X-getmail-retrieved-from-mailbox: Patches |
Series |
[bug#54953] gnu: Add emacs-nano-theme
|
|
Commit Message
Maya
April 15, 2022, 9:50 a.m. UTC
--- This is my first git patch ever. I really hope I did everything correctly. This is imported emacs package from ELPA, but I shortened the ELPA description a bit. I apologize for any mistakes I made. I never used this method before. Maya gnu/packages/emacs-xyz.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) -- 2.35.1
Comments
Maya via Guix-patches via schreef op vr 15-04-2022 om 09:50 [+0000]: > + (synopsis "N Λ N O theme") > + (description > + "N Λ N O theme Conventionally, except for composite words, words are written without spaces. And Λ is not a fancy A, but the capital Greek letter lambda. You are also mixing Greek and Latin alphabet here, and I don't see why the lambda, nu and omicron is capitalised here. My proposal: Νανο. (Nitpickery reported upstream at <https://github.com/rougier/nano-theme/issues/26>. I don't think it has to be changed downstream in Guix.) > is a consistent theme that comes in two flavors: - a light theme > +that is based on Material (https://material.io/) - a dark theme that is based > +on Nord (https://www.nordtheme.com/). To make lists, use the Texinfo markup @itemize, @item and @end itemize, then "guix show emacs-nano-theme" can render the list nicely. Texinfo also has some markup for hyperlinks. > + > +A theme is fully defined by a set of (1+6) faces as explained in this paper > +https://arxiv.org/abs/2008.06030 Missing period at end of sentence. > + > +Recommended font is \"Roboto Mono\" or \"Roboto Mono Nerd\" if you want to benefit > +from all the fancy glyphs.") Maybe a reference to the Guix package (I think it's font-google- roboto?) would be useful here? Greetings, Maxime.
> For the record, this space is for the commit message, which should be > an explanation if needed (not needed for the addition of a package), > and a ChangeLog. Oh I am sorry, I didn't know that. >You might want to simply write "Emacs theme defined by 7 faces" I agree. If it is fine that the package now will not agree with upstream. > I agree with Maxime. Use "Nano Theme", "@code{nano-theme}" or simply > "This package provides a theme that comes in two flavours". I'm not > sure whether we should add "consistent" -- it would suggest that other > themes are inconsistent, which sure some of them might be but most > don't strive to be. I wouldn't call it that ("consistent") myself and I do agree that it sounds a bit weird, if it is, again, fine, that it will not agree with upstream, I will change it. > Here too I would suggest @code{nano-theme} or this-theme. It sounds better. However does it matter that it now will not match guix package name but match the emacs package name? > "It is recommended to use a font with programming ligatures, such as > @code{font-google-roboto}". On that note, does Roboto have programming > ligatures? It sadly does not. But Roboto Mono Nerd is not packaged for guix and I haven't checked the license on their assets yet. I believe that Roboto Mono is recommended as a aesthetic matching font. Best, Maya.
Am Montag, dem 18.04.2022 um 13:52 +0000 schrieb Maya: > > For the record, this space is for the commit message, which should > > be an explanation if needed (not needed for the addition of a > > package), and a ChangeLog. > Oh I am sorry, I didn't know that. No problem. Now you do :) > > You might want to simply write "Emacs theme defined by 7 faces" > I agree. If it is fine that the package now will not agree with > upstream. Many upstreams don't have useful synopses or descriptions, so we often have to adapt them. In other words, it's no harm if you put more effort into synopses and descriptions than merely copying them from elsewhere, as long as formal requirements are met (e.g. the synopsis is a short line, the description consists of full sentences, etc.) > > I agree with Maxime. Use "Nano Theme", "@code{nano-theme}" or > > simply "This package provides a theme that comes in two flavours". > > I'm not sure whether we should add "consistent" -- it would suggest > > that other themes are inconsistent, which sure some of them might > > be but most don't strive to be. > I wouldn't call it that ("consistent") myself and I do agree that it > sounds a bit weird, if it is, again, fine, that it will not agree > with upstream, I will change it. As above, we usually strip all marketing words from upstream descriptions. > > Here too I would suggest @code{nano-theme} or this-theme. > It sounds better. However does it matter that it now will not match > guix package name but match the emacs package name? That's fine imo. IIUC nano-theme would be a feature that you can (require), no? > > "It is recommended to use a font with programming ligatures, such > > as @code{font-google-roboto}". On that note, does Roboto have > > programming ligatures? > It sadly does not. But Roboto Mono Nerd is not packaged for guix and > I haven't checked the license on their assets yet. I believe that > Roboto Mono is recommended as a aesthetic matching font. Last time I checked, Nerd fonts were a special kind of mess that's difficult to disentangle and more difficult to check licenses on. I wouldn't bother too hard. Is the recommendation important in your opinion? Cheers
> > > Here too I would suggest @code{nano-theme} or this-theme. > > It sounds better. However does it matter that it now will not match > > guix package name but match the emacs package name? > That's fine imo. IIUC nano-theme would be a feature that you can > (require), no? Yes it is a emacs package of that name. You also then load-theme it, so I guess it's fine. > > > "It is recommended to use a font with programming ligatures, such > > > as @code{font-google-roboto}". On that note, does Roboto have > > > programming ligatures? > > It sadly does not. But Roboto Mono Nerd is not packaged for guix and > > I haven't checked the license on their assets yet. I believe that > > Roboto Mono is recommended as a aesthetic matching font. > Last time I checked, Nerd fonts were a special kind of mess that's > difficult to disentangle and more difficult to check licenses on. I > wouldn't bother too hard. It looks like it. I didn't felt comfortable packaging it as it looked like they automatically download copyrighted content. > Is the recommendation important in your opinion? There is kind of a problem with that. The nano-theme package also provides a method of setting other not theme-related functionality under the nano-mode function. But that function prints an error if Roboto Mono Nerd isn't present on the system. (but does not fail) As for the recommendation of the Roboto Mono itself, I don't know. The nano packages are all about aesthetics. And the theme optionally sets faces to Roboto (or Fira Code as a fallback font). Weirdly enough, the code also sets some faces to Victor Mono, but there is no mention of that in the package description. The longer I'm looking at the code, the weirder it gets. It seems like it's not only a them per-se. But rather a visual style that kind-of breaks the borders of normal emacs theme. Best, Maya
An updated version of emacs-nano-theme is part of guix since commit #a2041fe468. Thanks, -- Cayetano Santos . gpg: CCB8 1842 F9D7 058E CD67 377A BF5C DF4D F6BF 6682 key: meta.sr.ht/~csantosb.pgp
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 2d95421472..e88c2898b8 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -1076,6 +1076,34 @@ (define-public emacs-nano-modeline displayed at the bottom or at the top.") (license license:gpl3+)))) +(define-public emacs-nano-theme + (package + (name "emacs-nano-theme") + (version "0.3.0") + (source + (origin + (method url-fetch) + (uri (string-append + "https://elpa.gnu.org/packages/nano-theme-" + version + ".tar")) + (sha256 + (base32 "1nq5x46467vnsfg3fzb0qyg97xpnwsvbqg8frdjil5zq5fhsgmrz")))) + (build-system emacs-build-system) + (home-page "https://github.com/rougier/nano-theme") + (synopsis "N Λ N O theme") + (description + "N Λ N O theme is a consistent theme that comes in two flavors: - a light theme +that is based on Material (https://material.io/) - a dark theme that is based +on Nord (https://www.nordtheme.com/). + +A theme is fully defined by a set of (1+6) faces as explained in this paper +https://arxiv.org/abs/2008.06030 + +Recommended font is \"Roboto Mono\" or \"Roboto Mono Nerd\" if you want to benefit +from all the fancy glyphs.") + (license license:gpl3+))) + (define-public emacs-moody (package (name "emacs-moody")