views:

234

answers:

2

I have the ruby version manager installed and use the ruby implementation installed by RVM set to the default so that 'which ruby' shows '~/.rvm/ruby-1.8.6-p383/bin/ruby' yet when I open an inf-ruby buffer in emacs, it uses the ruby installed in /usr/bin.

Is there a way to get emacs to respect the path for ruby the same way the shell does?

Thanks!

+1  A: 

Try customizing exec-path: M-x customize-option RET exec-path RET

Avdi
+1  A: 

I created a emacs extension to integrate rvm into emacs. If you are interested you can get it here: http://github.com/senny/rvm.el

senny
Thanks man! This works great!
calstad