Closed davidw closed 7 years ago
It's not a 'gotcha', it's part of the installation if you use RVM. Without it, it won't work.
Without it, it won't work.
That's not true. First, if you use only one Ruby version, calling (rvm-use-default)
, like documented in rvm.el's README, will do the trick.
Second, if you routinely switch between projects that use different versions of Ruby, you're going to have problems with other packages that deal with Ruby as well (such as inf-ruby
), unless you call rvm-activate-corresponding-ruby
each time, or add it to ruby-mode-hook
. That's mentioned in the same README, under Usage.
And if you do that, you won't even need rspec-use-rvm
.
It sounds like between what I wrote, and what you wrote above, you have a pretty good idea of what should go in the README. Probably makes more sense for you to make those changes.
Yes and no: I've never actually used RVM with Emacs (at least to my recollection).
Would "call M-x rbm-activate-corresponding-ruby
each time when you switch between projects" satisfy you as an advice?
There's a mistake in my previous message: you can't add it to ruby-mode-hook
: the "current Ruby" setting is global.
+1 this commit was helpfull, thank you very much.
Too bad this PR puts the section too high.
The text looks good, but I think it should go further down, into "Gotchas".