I have installed ruby-electric.el to enable autopairing for def and end. I have required it in the .emacs file and evaluated the buffer.
However when I type ‘def’ in the buffer I dont see a corresponding ‘end’ block being added. How do I test what I am doing wrong ?
You need to enable it in
ruby-modebuffers. For example, this way:The
endkeyword should be added when you type Space afterdef.BTW, if you’re using the version from this repository, you don’t need to do the above, it already adds the hook in an
autoloadform. This is also the version that’s packaged in Tromey’s ELPA repository.