GNU Emacs + Ruby (not RoR)

Hi everyone,

I’m trying to setup GNU Emacs (Aquamacs) for developing with Ruby, not
Ruby on Rails.

I’m having a hard time since I’m newbie to Emacs and almost all
references I’ve found deal with RoR setup, not Ruby.

I’ve already configured successfully the ruby-mode, snippet.el and
xmpfilter. However, I don’t know how to add autocompletion, ri, irb,
etc.

I would appreciate very much any links to detailed instructions for
finishing my setup, and/or Emacs Lisp preference files.

Thanks in advance

On Jan 12, 6:15 pm, [email protected] wrote:

etc.
Hm… I’ve used to use Emacs + ruby-mode and I’m pretty OK with the
default setup. Autocomplete is always here–just hit Alt+/ :slight_smile:

As to ri and irb–I run them from the shell. The only ruby-related
thing I love to run from Emacs is ‘ruby -rdebug’…

On Jan 13, 2008 7:14 AM, Alex S. [email protected] wrote:

As to ri and irb–I run them from the shell. The only ruby-related
thing I love to run from Emacs is ‘ruby -rdebug’…

About that… I, particularly, can’t get rdebug to work properly with
Emacs.
I don’t know if I’m doing anything wrong, but I’ve got rdebug.el loaded,
and
everytime I call “M-x rdebug”, I get a new empty buffer with my ruby
file
preceded by two ^Z, the little arrow pointing to its first line (which
is
also empty). rdebug console also refers to the filename preceded by the
two
^Z.
Do you have any tips for that or does it just work?

On 13 ene, 14:10, Vitor P. [email protected] wrote:

preceded by two ^Z, the little arrow pointing to its first line (which is
also empty). rdebug console also refers to the filename preceded by the two
^Z.
Do you have any tips for that or does it just work?


Vitor P. (dodecaphonic)
------------------------------------http://twitter.com/dodecaphonichttp://dodecaphonic.blogspot.com

Thanks for your replies.

Could you post your emacs configuration file for Ruby? I want to see
if I’m missing anything.

On Jan 13, 4:21 pm, arg [email protected] wrote:

Thanks for your replies.

Could you post your emacs configuration file for Ruby? I want to see
if I’m missing anything.

As I’ve said I use default setup–there is nothing ruby-specific in
my .emacs…

On Sun, 13 Jan 2008 01:19:58 +0900, arcadiorubiogarcia wrote:

I’m trying to setup GNU Emacs (Aquamacs) for developing with Ruby, not
Ruby on Rails.

I’m having a hard time since I’m newbie to Emacs and almost all
references I’ve found deal with RoR setup, not Ruby.

Are you using emacs from the command line, or the GUI? I’m presently
using nano and am looking to switch to emacs.

-Thufir

On Jan 13, 3:10 pm, Vitor P. [email protected] wrote:

preceded by two ^Z, the little arrow pointing to its first line (which is
also empty). rdebug console also refers to the filename preceded by the two
^Z.
Do you have any tips for that or does it just work?

Hm… I cannot issue M-x rdebug'--it's not recognized by Emacs, though rdebug.el is somewhere under site-lisp/... But I useM-x
gdb’, `ruby -rdebug myfile.rb’ and then it works smoothly.

It’s Debian lenny, GNU Emacs 22.1.1, ruby-1.8.6.

Hope this helps.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs