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!
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
I know this is an old question, but it might help someone else with the same type of problem in the future.
I have installed Ruby/Rails via rvm, set the default Ruby version I want to use.
I then installed rvm via emacs ELPA package manager.
I added the following to my ~/.emacs:
(require 'rvm)
(rvm-use-default)
I can now run emacs and open eshell/shell and everything is working as expected.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With