[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

GNU Emacs + Ruby (not RoR

arcadio

1/12/2008 4:16:00 PM

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
6 Answers

Alex Shulgin

1/13/2008 9:12:00 AM

0

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.

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+/ :)

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


--
Alex

Vitor Peres

1/13/2008 1:10:00 PM

0

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

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


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/do...
http://dodecaphonic.bl...

arcadio

1/13/2008 2:21:00 PM

0

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

Thanks for your replies.

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

Alex Shulgin

1/14/2008 8:31:00 AM

0

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?

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

Alex Shulgin

1/14/2008 8:56:00 AM

0

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.

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

--
Alex

Thufir Hawat

2/22/2008 9:05:00 AM

0

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