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

Option for opening REPL but not moving cursor #1872

Closed
raxod502 opened this issue Oct 19, 2016 · 2 comments
Closed

Option for opening REPL but not moving cursor #1872

raxod502 opened this issue Oct 19, 2016 · 2 comments

Comments

@raxod502
Copy link
Contributor

We have the option cider-repl-pop-to-buffer-on-connect, which affects what happens when CIDER connects to the REPL. When it's on, the REPL buffer is opened and my cursor is moved to it. When it's off, the REPL buffer is not opened.

I would like the REPL buffer to be opened but my cursor to not be moved to it.

This is my current solution:

(setq cider-repl-pop-to-buffer-on-connect nil)
(defadvice cider-repl-init (after display-repl-buffer)
  (display-buffer buffer))

It's not ideal because it means that when I do C-c M-J, only one of the REPLs is opened, instead of both, which is what happens when cider-repl-pop-to-buffer-on-connect is enabled (radian-software/radian#105).

@Malabarba
Copy link
Member

Minor comment. If we do this, it should be a different value for this variable, not a new variable.

@bbatsov
Copy link
Member

bbatsov commented Nov 1, 2016

Yeah, I guess that would be best.

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

No branches or pull requests

3 participants