ajvargo / ruby-refactor

A minor mode for Emacs that provides some Ruby refactoring methods.
63 stars 19 forks source link

Fix setting of default keymap (#17). #18

Closed dodecaphonic closed 11 years ago

dodecaphonic commented 11 years ago

defvar was being called again after the variable was already set, which doesn't work. Also, there was a typo when redefining it (ruby-reactor-mode-map instead of ruby-refactor-mode-map). I have followed a pattern found in other ELPA packages, such as scala-mode2, to fix it.

dodecaphonic commented 11 years ago

I've also added the possibility of setting your own keymap prefix. I use inf-ruby, and C-c C-r was already in my muscle memory. It keeps that by default, though.

I've also removed the when not - setq dance from 85844be and resorted to defining the var already.