I am very new to Emacs. In my case what I'm actually using is Spacemacs.
I have few versions of Ruby installed in my system and I use RVM for switching between them.
I'm trying to change current version of Ruby when working on some project by pressing M-x
and entering command rvm-use
and then selecting the version I need, but it only changes Ruby version for the current buffer and when I open a new file of the same project I can see that Ruby version is back to previous one.
Is there any way to persist the setting for whole Emacs session (or persist it for all files in the current directory) so it only gets reset when I restart Emacs (or when I change current directory)?
I don't actually know if it's something specific to rvm.el
or Emacs, but I can't find a way to achieve what I want.
Now the only way for me to achieve that is to run rvm *needed_version* --default
in the shell, but that changes the version for whole operating system, and I would prefer to limit the effect to Emacs only.
When working in OS X terminal I can just run rvm *needed_version*
and it changes rvm version for whole terminal session but without affecting other sessions, but I can't find a way to achieve the same in Emacs.