Install ruby-mode and save desktop on exit