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

buffer scrolls too much when not needed. #15

Open
jots opened this issue Feb 25, 2014 · 3 comments
Open

buffer scrolls too much when not needed. #15

jots opened this issue Feb 25, 2014 · 3 comments
Labels

Comments

@jots
Copy link

jots commented Feb 25, 2014

Thanks for making emacs-quickrun, it's great.
I use it to eval current ruby buffer. only problem is that it scrolls the output out of sight. so if buffer just consists of: "puts 'hello'" and I quickrun it, I need to scroll up in the quickrun buffer to see the output because the buffer scrolls it out of sight.

2 other questions:
Can I have it not move my cursor into the quickrun buffer?
Can quickrun buffer be vertical to the right of my edit buffer?

@syohex
Copy link
Contributor

syohex commented Feb 25, 2014

I use it to eval current ruby buffer. only problem is that it scrolls the output out of sight. so if buffer just consists of: "puts 'hello'" and I quickrun it, I need to scroll up in the quickrun buffer to see the output because the buffer scrolls it out of sight.

I consider about this thing. I think you can avoid this by using quickrun-after-run-hook
as below.

(defun my/quickrun-hook ()
  (goto-char (point-min)))
(add-hook 'quickrun-after-run-hook 'my/quickrun-hook)

Can I have it not move my cursor into the quickrun buffer?
Can quickrun buffer be vertical to the right of my edit buffer?

You can use popwin-el for these purposes.

@jots
Copy link
Author

jots commented Feb 26, 2014

Thanks! Your snippet worked great. and I am now using quickrun with popwin.

One thing: still it puts my cursor in the quickrun buffer. I can close with ctrl-G but, I have an idea: since keystroke to bring up quickrun (i bind to ctrl-enter) doesn't have any use inside the quickrun buffer, it would be nice if it could toggle the window closed if hit inside quickrun buffer. I'm not sure how to set that up though.

@syohex
Copy link
Contributor

syohex commented Feb 26, 2014

@jots I suppose we can use :noselect property for this purpose but it does not
works well with quickrun. I try to address that behavior.

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

No branches or pull requests

3 participants