# GNU Emacs + Ruby (not RoR)

**URL:** <https://www.ruby-forum.com/t/gnu-emacs-ruby-not-ror/125833>\
**Category:** Ruby\
**Created:** [January 12, 2008, 5:20pm UTC](https://www.ruby-forum.com/t/gnu-emacs-ruby-not-ror/125833 "2008-01-12T17:20:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [January 12, 2008, 5:20pm UTC](https://www.ruby-forum.com/t/gnu-emacs-ruby-not-ror/125833/1 "2008-01-12T17:20:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [January 13, 2008, 10:17am UTC](https://www.ruby-forum.com/t/gnu-emacs-ruby-not-ror/125833/2 "2008-01-13T10:17:39Z")

</div>

On Jan 12, 6:15 pm, removed\_email\_address@domain.invalid 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+/ 🙂

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’…

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [January 13, 2008, 2:11pm UTC](https://www.ruby-forum.com/t/gnu-emacs-ruby-not-ror/125833/3 "2008-01-13T14:11:38Z")

</div>

On Jan 13, 2008 7:14 AM, Alex S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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?

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [January 13, 2008, 3:25pm UTC](https://www.ruby-forum.com/t/gnu-emacs-ruby-not-ror/125833/4 "2008-01-13T15:25:30Z")

</div>

On 13 ene, 14:10, Vitor P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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](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.

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [January 14, 2008, 10:02am UTC](https://www.ruby-forum.com/t/gnu-emacs-ruby-not-ror/125833/5 "2008-01-14T10:02:23Z")

</div>

On Jan 13, 4:21 pm, arg [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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…

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [February 22, 2008, 10:07am UTC](https://www.ruby-forum.com/t/gnu-emacs-ruby-not-ror/125833/6 "2008-02-22T10:07:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [January 14, 2008, 9:35am UTC](https://www.ruby-forum.com/t/gnu-emacs-ruby-not-ror/125833/7 "2008-01-14T09:35:50Z")

</div>

On Jan 13, 3:10 pm, Vitor P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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 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.
