rejeep / ruby-end.el

Emacs minor mode for automatic insertion of end blocks for Ruby

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ruby end Build Status

Ruby end is a minor mode for Emacs that can be used with ruby-mode to automatically close blocks by inserting end when typing a "block keyword", followed by a space.

Installation

I recommend installing via ELPA, but manual installation is simple as well:

(add-to-list 'load-path "/path/to/ruby-end")
(require 'ruby-end)

Usage

When ruby-mode is started, ruby-end-mode will automatically start.

In a Ruby file, try writing a block keyword, such as class or def and then SPC.

For more information, see comments in ruby-end.el.

Contribution

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:

$ make

About

Emacs minor mode for automatic insertion of end blocks for Ruby


Languages

Language:Emacs Lisp 62.5%Language:Gherkin 36.7%Language:Makefile 0.8%