Message ID | b003e7cb19bcfa3d00d8a0c9dc84a8cf38cdf0f3.1723439295.git.gemmaro.dev@gmail.com |
---|---|
State | New |
Headers | show |
Series | [bug#72586] gnu: Add emacs-ruby-electric. | expand |
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 --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")