Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to do “ Emacs path setup ”, “rspec-verify-all ” is no work #119

Open
xlisp opened this issue May 4, 2015 · 12 comments
Open

Comments

@xlisp
Copy link

xlisp commented May 4, 2015

I am use rvm & zsh & mac emacs 24.4, but I don't know how to do "Emacs path setup"

~  echo $PATH
/Users/jim/.rvm/gems/ruby-2.2.0/bin:/Users/jim/.rvm/gems/ruby-2.2.0@global/bin:/Users/jim/.rvm/rubies/ruby-2.2.0/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home//bin:/Users/jim/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/jim/Downloads/apache-maven-3.2.5//bin:/Users/jim/.rvm/bin
➜  ~  cat .zshenv
export ZSH=$HOME/.oh-my-zsh
ZSH_THEME="robbyrussell"
export PATH=$HOME/bin:/usr/local/bin:$PATH
source $ZSH/oh-my-zsh.sh

qq20150504-3

@dgutov
Copy link
Collaborator

dgutov commented May 4, 2015

@xlisp
Copy link
Author

xlisp commented May 4, 2015

@dgutov
Rspec-mode is work good in my Emacs :) , but I can't enable inf-ruby , When I hit one breakpoint .

I add (add-hook 'after-init-hook 'inf-ruby-switch-setup) to my init.el , then Press Keys C-x C-q or M-x read-only-mode :
It's will show

Read-Only mode enabled
Read-Only mode disabled
... ... 

And I press "Enter" , It's will say compilation-next-error: No error here

I can't enable inf-ruby , It's no work :)

qq20150504-13

Thanks :)

@dgutov
Copy link
Collaborator

dgutov commented May 4, 2015

Have you restarted your Emacs?

M-x read-only-mode

Don't do that. Just press C-x C-q. And read up on Emacs keybindings.

@xlisp
Copy link
Author

xlisp commented May 4, 2015

@dgutov Thanks:)
I press C-x C-q in spec file buffer , I't will show "Read-Only mode enabled", Then I press C-h b look keybindings :

qq20150504-22

I press C-x C-q in rspec-compilation buffer , Then press C-h b :

qq20150504-23

@dgutov
Copy link
Collaborator

dgutov commented May 4, 2015

Do you have inf-ruby installed?

@xlisp
Copy link
Author

xlisp commented May 4, 2015

@dgutov
yes :) My inf-ruby is install ok.
but I not found " inf-ruby " , in these buffer keybindings .
Thanks :)
I can use M-x inf-ruby, open it , But I don't know How to do " send my code to binding.pry to run " :
qq20150504-24

@dgutov
Copy link
Collaborator

dgutov commented May 4, 2015

What happens if you evaluate (inf-ruby-switch-setup) manually, using M-:?

@xlisp
Copy link
Author

xlisp commented May 4, 2015

@dgutov
M-: (inf-ruby-switch-setup) in buffer "rspec-compilation" , return " inf-ruby-switch-from-compilation" :)

Thanks :)

@dgutov
Copy link
Collaborator

dgutov commented May 4, 2015

Does switching to inf-ruby-mode with C-x C-q in *rspec-compilation* work after that?

@xlisp
Copy link
Author

xlisp commented May 4, 2015

But I found keybindings have C-x C-q inf-ruby-switch-from-compilation , It's Look OK :) Yes:) Thank you :)
qq20150504-29

But I want send one or mark mutil line from file buffer to "rspec-compilation" buffer to run , How to do ?
Like Lisp C-x C-e run one line or mark mutil line, send to lisp explain .

@xlisp
Copy link
Author

xlisp commented May 4, 2015

@dgutov 👍

@dgutov
Copy link
Collaborator

dgutov commented May 4, 2015

Sorry, that's currently impossible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants