Electric Ruby Mode
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.
0 comments
