Electric Ruby Mode

written by zsombor on January 9th, 2005 @ 07:21 PM

Inspired by a code snippet posted by Frederick Ros, I’ve created an Emacs minor mode for editing Ruby files. Whenever you type a word like ‘module’, ‘class’, ‘def’, ‘while’ ‘do’ and so on it inserts a properly indented matching ‘end’. Of course this is only done for code regions and not in multi-line strings or comments. You can grab it from here.

Post a comment

Options:

Size

Colors