Ruby end is a minor mode for Emacs that can be used with
to automatically close blocks by inserting
end when typing a "block
keyword", followed by a space.
I recommend installing via ELPA, but manual installation is simple as well:
(add-to-list 'load-path "/path/to/ruby-end") (require 'ruby-end)
ruby-mode is started,
ruby-end-mode will automatically start.
In a Ruby file, try writing a block keyword, such as
For more information, see comments in
Contribution is much welcome! Ruby end is tested using Ecukes. When adding new features, please write tests for them!
Install cask if you haven't already, then:
$ cd /path/to/ruby-end $ cask
Run all tests with: