Subject: [bug#77783] [PATCH 2/2] gnu: Add emacs-elisp-autofmt.

From: nomike <[email-masked]>
Date: Sun, 13 Apr 2025 17:36:32 +0200

* gnu/packages/emacs-xyz.scm (emacs-elisp-autofmt): New variable.

Change-Id: I5a9a25099e1a4d5e59c4ac3868027fe64bc582bf
Signed-off-by: nomike <[email-masked]>
---
 gnu/packages/emacs-xyz.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index b290ab8d29..230dc71506 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -10270,6 +10270,30 @@ (define-public emacs-elastic-modes
 variable-width (i.e., proportional, or variable pitch) fonts.")
       (license license:gpl3+))))
 
+(define-public emacs-elisp-autofmt
+  ;; Use the latest commit since there are no proper releases nor tags, see
+  ;; <https://github.com/prusa3d/libbgcode/issues/31>.
+  (let ((commit "5b1fdc2761a80674123769ebf8a43fe312c0fa3f")
+        (revision "0"))
+    
+    (package
+      (name "emacs-elisp-autofmt")
+      (version (git-version "0.0.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://codeberg.org/ideasman42/emacs-elisp-autofmt")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "09wxrrqzccq3wv51n0blcln1zggmlm4fzrnj0svv8gir5q5g6l3h"))))
+      (build-system emacs-build-system)
+      (home-page "https://codeberg.org/ideasman42/emacs-elisp-autofmt")
+      (synopsis "Auto-format Emacs lisp")
+      (description "This is a package to auto-format Emacs lisp.")
+      (license license:gpl3+))))
+
 (define-public emacs-elisp-demos
   (package
     (name "emacs-elisp-demos")
-- 
2.49.0