rvm.el
This package integrates Emacs with the Ruby Version Manager ( rvm ).
Installation
Just drop rvm.el in your load-path and put the following in your .emacs
(require 'rvm)
(rvm-use-default) ;; use rvm's default ruby for the current Emacs session
Usage
Just call the interactive function rvm-activate-corresponding-ruby
and rvm.el will change Emacs to use the right ruby version for the file in the current buffer. Remember that the new ruby version will be used for the whole Emacs session and not just the current file. If you want to switch to another ruby version manualy you can call rvm-use
instead. See rvm-activate-ruby-for
to activate for a specific path.
Please note that using system-ruby is not supported in rvm.el
RVM will by default print messages when switching environment. You can disable all messages by setting rvm-verbose
to nil
.
Read about rvm.el
If you want to read what people have written about rvm.el, this section links you to the relevant blog posts:
- Emacs Reboot #14 by Avdi Grimm
- Handle Ruby versions by Samuel Tonini
- Emacs tidbits for Ruby developers by Yves Senn
Community
Got a question?
Just send me a message and I'll try to get to you as soon as possible.
Found a bug?
Please register a new issue.
Fixed something?
- Fork rvm.el
- Install Cask
- Install dependencies -
cask install
- Create a topic branch -
git checkout -b my_branch
- Make your changes and update the History.txt file
- Run the tests -
make test
- Push to your branch -
git push origin my_branch
- Send me a pull-request for your topic branch
- That's it!