diff mbox series

[bug#72586] gnu: Add emacs-ruby-electric.

Message ID b003e7cb19bcfa3d00d8a0c9dc84a8cf38cdf0f3.1723439295.git.gemmaro.dev@gmail.com
State New
Headers show
Series [bug#72586] gnu: Add emacs-ruby-electric. | expand

Commit Message

gemmaro Aug. 12, 2024, 5:08 a.m. UTC
* gnu/packages/emacs-xyz.scm (emacs-ruby-electric): New variable.

Change-Id: I4a198b649d219ccf756391baace3dab506c659af
---
 gnu/packages/emacs-xyz.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)


base-commit: 174ecf5b1077d29498d9de22e27b13047f314feb

Comments

Nicolas Goaziou Aug. 19, 2024, 6:02 p.m. UTC | #1
Hello,

> * gnu/packages/emacs-xyz.scm (emacs-ruby-electric): New variable.

Thank you. I applied the patch with the following tweaks.

> +     (origin
> +       (method git-fetch)
> +       (uri (git-reference
> +             (url "https://github.com/ruby/elisp-ruby-electric.git")

I removed the ".git" suffix

> +             (commit (string-append "v" version))))
> +       (sha256
> +        (base32 "1p0l0fsn0jcgb4raimyc4d1wpfksrfhn0rkwdazadvm6s8baydf7"))))
> +    (build-system emacs-build-system)
> +    (home-page "https://github.com/ruby/elisp-ruby-electric")
> +    (synopsis "Minor mode for electrically editing Ruby code")
> +    (description
> +     "@samp{ruby-electric-mode} accelerates code writing in Ruby by making some keys

I wrote "Ruby Electric mode" instead, following naming Emacs conventions.

Regards,
diff mbox series

Patch

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 2ff1ed4bf0..ac403b8ef6 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -13307,6 +13307,27 @@  (define-public emacs-request
 line program.")
       (license license:gpl3+))))
 
+(define-public emacs-ruby-electric
+  (package
+    (name "emacs-ruby-electric")
+    (version "2.3.3")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/ruby/elisp-ruby-electric.git")
+             (commit (string-append "v" version))))
+       (sha256
+        (base32 "1p0l0fsn0jcgb4raimyc4d1wpfksrfhn0rkwdazadvm6s8baydf7"))))
+    (build-system emacs-build-system)
+    (home-page "https://github.com/ruby/elisp-ruby-electric")
+    (synopsis "Minor mode for electrically editing Ruby code")
+    (description
+     "@samp{ruby-electric-mode} accelerates code writing in Ruby by making some keys
+electric and automatically supplying with closing parentheses and @code{end} as
+appropriate.")
+    (license license:ruby)))
+
 (define-public emacs-rudel
   (package
     (name "emacs-rudel")