Get inf-ruby to use ruby ​​version manager (rvm)

I have ruby ​​version manager installed and using the ruby ​​implementation installed by RVM installed by default, so what ruby ​​shows '~ / .rvm / ruby-1.8.6-p383 / bin / ruby', but when I open emacs inf-ruby buffer, it uses the ruby ​​installed in / usr / bin.

Is there a way to get emacs to respect the path for ruby ​​just like the shell does?

Thanks!

+5
source share
3 answers

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

+6
source

, , - .

Ruby/Rails rvm, Ruby, .

rvm emacs ELPA.

~/.emacs:

(require 'rvm)  
(rvm-use-default)

emacs eshell/shell, .

+2

Try customizing exec-path: Mx customize-option RET exec-path RET

+1
source

All Articles