On Apr 16, 2011, at 13:45 , mouser wrote:

> Uninstall ruby-compilation from ELPA (hit 'd' on it's line in
> package-list-packages, then hit 'x').  Then, install the source for
> ruby-compilation (from
> =
https://github.com/eschulte/rinari/raw/master/util/ruby-compilation.el) =
in
> your load path (somewhere in ~/.emacs.d for instance).  Next, add =
"(require
> 'ruby-compilation)" to ~/.emacs.  Finally, open up the =
ruby-compilation.el
> file in your load path and add "(define-key map [return]
> 'comint-send-input)" to defvar ruby-compilation-minor-mode-map (for =
instance
> at line 279).  The last part is required because for some reason
> compilation-mode shadows the comint-send-input binding though it's not
> immediately apparent where that is happening.

It'd be a lot more maintainable if you didn't modify the file and =
instead added the define-key to your .emacs:

(define-key ruby-compilation-minor-mode-map [return] 'comint-send-input)