all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#64626] [PATCH] gnu: Add emacs-project-mode-line-tag.
@ 2023-07-14 17:33 Ahmad Draidi via Guix-patches via
  2023-07-14 18:39 ` [bug#64626] [PATCH v2] " Ahmad Draidi via Guix-patches via
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Draidi via Guix-patches via @ 2023-07-14 17:33 UTC (permalink / raw)
  To: 64626; +Cc: Ahmad Draidi, Andrew Tropin, Liliana Marie Prikler

* gnu/packages/emacs-xyz.scm (emacs-project-mode-line-tag): New variable.
---
 gnu/packages/emacs-xyz.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 480096fb50..cbe88a2ad5 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -1261,6 +1261,31 @@ (define-public emacs-project
 some utility functions, and commands using that infrastructure.")
     (license license:gpl3+)))
 
+;; Package has no release.  Version is extracted from "Version:" keyword in
+;; main file.
+(define-public emacs-project-mode-line-tag
+  (let ((commit "a8809cc1a50cfdedaf7bed2810249ae262884716")
+        (revision "0"))
+    (package
+      (name "emacs-project-mode-line-tag")
+      (version (git-version "0.1" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url
+                       "https://github.com/fritzgrabo/project-mode-line-tag")
+                      (commit commit)))
+                (sha256
+                 (base32
+                  "0bmx9a1g199axj9ypqisvfyf1517czw23zg96x1wdzqrpw3cb7cx"))))
+      (build-system emacs-build-system)
+      (home-page "https://github.com/fritzgrabo/project-mode-line-tag")
+      (synopsis "Display a buffer's project in its mode line")
+      (description
+       "Display information about a buffer's project (a \"project tag\") in
+its mode line.")
+      (license license:gpl3+))))
+
 (define-public git-modes
   (package
     (name "emacs-git-modes")

base-commit: 917a299831361f253ea664f009176b4bbe06900a
-- 
2.41.0





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

* [bug#64626] [PATCH v2] gnu: Add emacs-project-mode-line-tag.
  2023-07-14 17:33 [bug#64626] [PATCH] gnu: Add emacs-project-mode-line-tag Ahmad Draidi via Guix-patches via
@ 2023-07-14 18:39 ` Ahmad Draidi via Guix-patches via
  0 siblings, 0 replies; 2+ messages in thread
From: Ahmad Draidi via Guix-patches via @ 2023-07-14 18:39 UTC (permalink / raw)
  To: 64626; +Cc: Ahmad Draidi, Andrew Tropin, Liliana Marie Prikler

* gnu/packages/emacs-xyz.scm (emacs-project-mode-line-tag): New variable.
---

Second version adds '(file-name (git-file-name name version))'.
It seems to be recommended in the docs, and 'guix import' doesn't add it.

Sorry for the noise.

 gnu/packages/emacs-xyz.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 480096fb50..1c61068f6c 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -1261,6 +1261,32 @@ (define-public emacs-project
 some utility functions, and commands using that infrastructure.")
     (license license:gpl3+)))
 
+;; Package has no release.  Version is extracted from "Version:" keyword in
+;; main file.
+(define-public emacs-project-mode-line-tag
+  (let ((commit "a8809cc1a50cfdedaf7bed2810249ae262884716")
+        (revision "0"))
+    (package
+      (name "emacs-project-mode-line-tag")
+      (version (git-version "0.1" revision commit))
+      (source (origin
+                (method git-fetch)
+                (file-name (git-file-name name version))
+                (uri (git-reference
+                      (url
+                       "https://github.com/fritzgrabo/project-mode-line-tag")
+                      (commit commit)))
+                (sha256
+                 (base32
+                  "0bmx9a1g199axj9ypqisvfyf1517czw23zg96x1wdzqrpw3cb7cx"))))
+      (build-system emacs-build-system)
+      (home-page "https://github.com/fritzgrabo/project-mode-line-tag")
+      (synopsis "Display a buffer's project in its mode line")
+      (description
+       "Display information about a buffer's project (a \"project tag\") in
+its mode line.")
+      (license license:gpl3+))))
+
 (define-public git-modes
   (package
     (name "emacs-git-modes")

base-commit: 917a299831361f253ea664f009176b4bbe06900a
-- 
2.41.0





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

end of thread, other threads:[~2023-07-14 18:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-14 17:33 [bug#64626] [PATCH] gnu: Add emacs-project-mode-line-tag Ahmad Draidi via Guix-patches via
2023-07-14 18:39 ` [bug#64626] [PATCH v2] " Ahmad Draidi via Guix-patches via

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.