* [bug#54953] [PATCH] gnu: Add emacs-nano-theme
@ 2022-04-15 9:50 Maya via Guix-patches via
2022-04-17 8:31 ` Maxime Devos
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Maya via Guix-patches via @ 2022-04-15 9:50 UTC (permalink / raw)
To: 54953
---
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(+)
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")
--
2.35.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [bug#54953] [PATCH] gnu: Add emacs-nano-theme
2022-04-15 9:50 [bug#54953] [PATCH] gnu: Add emacs-nano-theme Maya via Guix-patches via
@ 2022-04-17 8:31 ` Maxime Devos
2022-04-17 18:45 ` Maya via Guix-patches via
` (2 subsequent siblings)
3 siblings, 0 replies; 8+ messages in thread
From: Maxime Devos @ 2022-04-17 8:31 UTC (permalink / raw)
To: Maya, 54953
[-- Attachment #1: Type: text/plain, Size: 1387 bytes --]
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.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* [bug#54953] [PATCH] gnu: Add emacs-nano-theme
2022-04-15 9:50 [bug#54953] [PATCH] gnu: Add emacs-nano-theme Maya via Guix-patches via
2022-04-17 8:31 ` Maxime Devos
@ 2022-04-17 18:45 ` Maya via Guix-patches via
2022-04-18 7:37 ` Maxime Devos
2022-04-18 9:36 ` Liliana Marie Prikler
2022-04-18 13:52 ` Maya via Guix-patches via
2022-04-18 16:28 ` [bug#54953] (No Subject) Maya via Guix-patches via
3 siblings, 2 replies; 8+ messages in thread
From: Maya via Guix-patches via @ 2022-04-17 18:45 UTC (permalink / raw)
To: 54953@debbugs.gnu.org
I have made the changes you suggested, I only didn't know what to do about your comment regarding the use of greek alphabet, does that mean the patch won't be merged until upstream changes it?
Maya
---
gnu/packages/emacs-xyz.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 3d105747d1..ed3aa2e3a6 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -1076,6 +1076,36 @@ (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:
+@itemize
+@item a light theme that is based on Material (@url{https://material.io/})
+@item a dark theme that is based on Nord (@url{https://www.nordtheme.com/}).
+@end itemize
+
+A theme is fully defined by a set of (1+6) faces as explained in this paper
+@url{https://arxiv.org/abs/2008.06030}.
+
+Recommended font is \"Roboto Mono\" (package @code{font-google-roboto}) 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")
--
2.35.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [bug#54953] [PATCH] gnu: Add emacs-nano-theme
2022-04-17 18:45 ` Maya via Guix-patches via
@ 2022-04-18 7:37 ` Maxime Devos
2022-04-18 9:36 ` Liliana Marie Prikler
1 sibling, 0 replies; 8+ messages in thread
From: Maxime Devos @ 2022-04-18 7:37 UTC (permalink / raw)
To: Maya, 54953@debbugs.gnu.org
[-- Attachment #1: Type: text/plain, Size: 453 bytes --]
Maya via Guix-patches via schreef op zo 17-04-2022 om 18:45 [+0000]:
> I have made the changes you suggested, I only didn't know what to do
> about your comment regarding the use of greek alphabet, does that mean
> the patch won't be merged until upstream changes it?
I think we can keep the name upstream uses, it just bothered me a bit
(e.g. the extra spaces probably don't interact well with text-to-speech
software).
Greetings,
Maxime.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* [bug#54953] [PATCH] gnu: Add emacs-nano-theme
2022-04-17 18:45 ` Maya via Guix-patches via
2022-04-18 7:37 ` Maxime Devos
@ 2022-04-18 9:36 ` Liliana Marie Prikler
1 sibling, 0 replies; 8+ messages in thread
From: Liliana Marie Prikler @ 2022-04-18 9:36 UTC (permalink / raw)
To: Maya, 54953@debbugs.gnu.org
Am Sonntag, dem 17.04.2022 um 18:45 +0000 schrieb Maya:
> I have made the changes you suggested, I only didn't know what to do
> about your comment regarding the use of greek alphabet, does that
> mean the patch won't be merged until upstream changes it?
>
> 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.
> ---
You can add your own comments below this line.
> gnu/packages/emacs-xyz.scm | 30 ++++++++++++++++++++++++++++++
> 1 file changed, 30 insertions(+)
>
> diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
> index 3d105747d1..ed3aa2e3a6 100644
> --- a/gnu/packages/emacs-xyz.scm
> +++ b/gnu/packages/emacs-xyz.scm
> @@ -1076,6 +1076,36 @@ (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")
You might want to simply write "Emacs theme defined by 7 faces"
> + (description
> + "N Λ N O theme is a consistent theme that comes in two flavors:
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.
> +@itemize
> +@item a light theme that is based on Material
> (@url{https://material.io/})
> +@item a dark theme that is based on Nord
> (@url{https://www.nordtheme.com/}).
> +@end itemize
> +
> +A theme is fully defined by a set of (1+6) faces as explained in
> this paper
> +@url{https://arxiv.org/abs/2008.06030}.
Here too I would suggest @code{nano-theme} or this-theme.
> +Recommended font is \"Roboto Mono\" (package @code{font-google-
> roboto}) or \"Roboto Mono Nerd\" if you want to benefit
> +from all the fancy glyphs.")
"It is recommended to use a font with programming ligatures, such as
@code{font-google-roboto}". On that note, does Roboto have programming
ligatures?
Cheers
^ permalink raw reply [flat|nested] 8+ messages in thread
* [bug#54953] [PATCH] gnu: Add emacs-nano-theme
2022-04-15 9:50 [bug#54953] [PATCH] gnu: Add emacs-nano-theme Maya via Guix-patches via
2022-04-17 8:31 ` Maxime Devos
2022-04-17 18:45 ` Maya via Guix-patches via
@ 2022-04-18 13:52 ` Maya via Guix-patches via
2022-04-18 16:03 ` Liliana Marie Prikler
2022-04-18 16:28 ` [bug#54953] (No Subject) Maya via Guix-patches via
3 siblings, 1 reply; 8+ messages in thread
From: Maya via Guix-patches via @ 2022-04-18 13:52 UTC (permalink / raw)
To: 54953@debbugs.gnu.org
> 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.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [bug#54953] [PATCH] gnu: Add emacs-nano-theme
2022-04-18 13:52 ` Maya via Guix-patches via
@ 2022-04-18 16:03 ` Liliana Marie Prikler
0 siblings, 0 replies; 8+ messages in thread
From: Liliana Marie Prikler @ 2022-04-18 16:03 UTC (permalink / raw)
To: Maya, 54953@debbugs.gnu.org
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* [bug#54953] (No Subject)
2022-04-15 9:50 [bug#54953] [PATCH] gnu: Add emacs-nano-theme Maya via Guix-patches via
` (2 preceding siblings ...)
2022-04-18 13:52 ` Maya via Guix-patches via
@ 2022-04-18 16:28 ` Maya via Guix-patches via
3 siblings, 0 replies; 8+ messages in thread
From: Maya via Guix-patches via @ 2022-04-18 16:28 UTC (permalink / raw)
To: 54953@debbugs.gnu.org
> > > 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
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2022-04-18 16:30 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-15 9:50 [bug#54953] [PATCH] gnu: Add emacs-nano-theme Maya via Guix-patches via
2022-04-17 8:31 ` Maxime Devos
2022-04-17 18:45 ` Maya via Guix-patches via
2022-04-18 7:37 ` Maxime Devos
2022-04-18 9:36 ` Liliana Marie Prikler
2022-04-18 13:52 ` Maya via Guix-patches via
2022-04-18 16:03 ` Liliana Marie Prikler
2022-04-18 16:28 ` [bug#54953] (No Subject) Maya via Guix-patches via
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).