On Apr 16, 2:43=A0pm, "mouser" <inva... / invalid.com> wrote:
> On 16-Apr-2011, duke <sidney.reilley... / gmail.com> wrote:
>
> > It executes OK, and the program output is correct, but I may be taking
> > "the long way around". :) Thanks for your input.
>
> You might find the following will make your life easier.
>
> Uninstall ruby-compilation from ELPA (hit 'd' on it's line in
> package-list-packages, then hit 'x'). =A0Then, install the source for
> ruby-compilation (fromhttps://github.com/eschulte/rinari/raw/master/util/=
ruby-compilation.el) in
> your load path (somewhere in ~/.emacs.d for instance). =A0Next, add "(req=
uire
> 'ruby-compilation)" to ~/.emacs. =A0Finally, 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 insta=
nce
> at line 279). =A0The 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.
>
> This gives you a couple advantages over installing it from ELPA. =A0C-x t=
 will
> invoke ruby-compilation-this-buffer whenever you are in ruby-mode, and no=
w
> hitting return/enter will invoke comint-send-input in the compilation
> buffer.
>
> By the way, you might find the following useful for learning and programm=
ing
> Ruby in Emacs. =A0Seehttp://www.emacswiki.org/emacs/FlymakeRubyfor automa=
ted
> syntax checking. =A0Also, install the ruby-debug (or ruby-debug19 for Rub=
y
> 1.9) gem for Ruby debugging. =A0Take a look athttp://bashdb.sourceforge.n=
et/ruby-debug/rdebug-emacs.htmlfor Emacs
> integration of this debugger.

Much obliged! I'll give it a shot tomorrow!