Skip to content

Instantly share code, notes, and snippets.

@rocknrollMarc
Forked from gnufied/gist:7228158
Created March 10, 2014 07:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rocknrollMarc/9460636 to your computer and use it in GitHub Desktop.
Save rocknrollMarc/9460636 to your computer and use it in GitHub Desktop.
configuration:
(require 'robe)
(add-hook 'enh-ruby-mode-hook 'robe-mode)
Usage:
I have noticed that when inf-ruby mode loads pry it just hangs because of
pry trying to be smart about determining terminal type. It is
not a problem with robe per se, but the fact that pry is unusable from
comint mode of Emacs (It used to work previously, pry broke it very recently).
So what I do:
1. go to root of the project
2. M-x inf-ruby
3. Manually load 'require "./config/environment"'
4. switch to any file in the project and run robe-start
5. For other non-rails projects in fact, I have picked up habit of creating a '.robeup' file which does same sa 'config/environment'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment