Subject: [bug#72728] [PATCH] gnu: Add emacs-auto-yasnippet.

From: Rostislav Svoboda <[email-masked]>
Date: Tue, 20 Aug 2024 11:06:36 +0200

* gnu/packages/emacs-xyz.scm (emacs-auto-yasnippet): New variable.

Change-Id: I638a4d180565f407a05e8a83b939a532ac71ae63
---
 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 e48ba5bfb4..b453e1bc23 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -18722,6 +18722,31 @@ (define-public emacs-yasnippet-snippets
 automatically made available to YASnippet.")
     (license license:gpl3+)))
 
+(define-public emacs-auto-yasnippet
+  (package
+    (name "emacs-auto-yasnippet")
+    (version "1.0.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/abo-abo/auto-yasnippet")
+             (commit
+              "6a9e406d0d7f9dfd6dff7647f358cb05a0b1637e")))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "0ifzbwnm2axb8kmfp3jvg05wq02j121iwp2m64pi70c7mza0i886"))))
+    (build-system emacs-build-system)
+    (home-page
+     "https://github.com/abo-abo/auto-yasnippet")
+    (synopsis "Quickly create disposable yasnippets")
+    (description
+     "This package allows you to create and use snippets on the fly in Emacs
+ without leaving the current buffer. Simply insert `~` characters where you
+ want YASnippet fields, and the snippet will be ready to use immediately.")
+    (license license:gpl3+)))
+
 (define-public emacs-doom-snippets
   ;; Use the latest commit, as there are no tagged releases.  Version is
   ;; extracted from main file.

base-commit: 4ec2b4747878877cb0f50df8c4127bb6044cdb93
-- 
2.45.2