Subject: [bug#47304] [PATCH] gnu: Add emacs-relative-buffers.

From: Joseph LaFreniere <[email-masked]>
Date: Sun, 21 Mar 2021 18:48:35 -0500

Patch file is attached.

--
Joseph LaFreniere
>From 9dffdb221ab741ea564b5f07e92a6a29ec3e9ccf Mon Sep 17 00:00:00 2001
From: Joseph LaFreniere <[email-masked]>
Date: Sun, 21 Mar 2021 18:47:22 -0500
Subject: [PATCH] gnu: Add emacs-relative-buffers.

* gnu/packages/emacs-xyz.scm (emacs-relative-buffers): New variable.
---
 gnu/packages/emacs-xyz.scm | 39 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 7085318e58..328c948e89 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -27253,3 +27253,42 @@ and prefered services can easily be configured.")
        "This package provides an Elisp wrapper around the Java
 @command{keytool} command and major mode for viewing Java keystores.")
       (license license:expat))))
+
+(define-public emacs-relative-buffers
+  (let ((release "0.0.1")
+        (revision "0")
+        (commit "9762fe268e9ff150dcec2e2e45d862d82d5c4008"))
+    (package
+      (name "emacs-relative-buffers")
+      (version (git-version release revision commit))
+      (home-page "https://github.com/emacsattic/relative-buffers")
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url home-page)
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32 "0fzhwbpyndwrmxip9zlcwkrr675l5pzwcygi45hv7w1hn39w0hxp"))
+                (snippet
+                 '(begin
+                    ;; Delete the Cask test runners.
+                    (for-each delete-file '("Cask" "test/test-helper.el"))
+                    #t))))
+      (build-system emacs-build-system)
+      (arguments
+       `(#:tests? #t
+         #:test-command '("ert-runner")))
+      (native-inputs
+       `(("ert-runner" ,emacs-ert-runner)))
+      (propagated-inputs
+       `(("emacs-dash" ,emacs-dash)
+         ("emacs-f" ,emacs-f)
+         ("emacs-s" ,emacs-s)))
+      (synopsis "Minor mode to rename buffers by project structure")
+      (description
+       "This package provides a minor mode for renaming buffers according to
+project structure.  For python buffers, that will be the whole module name.
+For temporary files and directories, that will be the relative path from the
+project root.")
+      (license license:gpl3+))))
-- 
2.31.0