Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby mode in emacs: how can I choose which version of ruby is ran when running irb?

Tags:

emacs

ruby

I have several version of ruby installed and when I run "run-ruby" on emacs it launches me the irb associated with ruby 1.8.7, while I'd like to use the irb from ruby 1.9.3. Does someone know how to configure that?

Thanks!

like image 609
S4M Avatar asked Oct 11 '25 19:10

S4M


1 Answers

also check out rvm.el. If you are switching, even just once, install Ruby Version Manager (rvm) and switching is easy, and just as easy, in emacs too.

Two birds with one stone.

like image 122
pjammer Avatar answered Oct 14 '25 11:10

pjammer