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

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 12, 6:15 pm, arcadiorubiogar...@gmail.com wrote:

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.

--
Alex

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 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.

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 Jan 13, 2008 7:14 AM, Alex Shulgin <alex.shulgin@gmail.com> 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'...

--
Vitor Peres (dodecaphonic)
------------------------------------
http://twitter.com/dodecaphonic
http://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 13 ene, 14:10, Vitor Peres <dodecapho...@gmail.com> wrote:

[Note: parts of this message were removed to make it a legal post.]

On Jan 13, 2008 7:14 AM, Alex Shulgin <alex.shul...@gmail.com> 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?

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

Hm... I cannot issue `M-x rdebug'--it's not recognized by Emacs,
though rdebug.el is somewhere under site-lisp/... But I use `M-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.

···

On Jan 13, 3:10 pm, Vitor Peres <dodecapho...@gmail.com> wrote:

[Note: parts of this message were removed to make it a legal post.]

On Jan 13, 2008 7:14 AM, Alex Shulgin <alex.shul...@gmail.com> 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?

--
Alex

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

···

On Jan 13, 4:21 pm, arg <arcadiorubiogar...@gmail.com> wrote:

Thanks for your replies.

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

--
Alex