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

Add support for CLJ and CLJS sibling scratch buffers. #1459

Closed
ghost opened this issue Dec 9, 2015 · 2 comments
Closed

Add support for CLJ and CLJS sibling scratch buffers. #1459

ghost opened this issue Dec 9, 2015 · 2 comments
Milestone

Comments

@ghost
Copy link

ghost commented Dec 9, 2015

When working on a ClojureScript project, I usually do most of my work in scratch buffers rather than at the REPL. I would find it handy to allow scratch buffers (created by M-x cider-scratch) to send the input to the correct process based on the major mode of the scratch buffer.

Current behavior (in a ClojureScript project) after cider-jack-in-clojurescript and cider-scratch is that the major mode is clojure-mode, but it is connected to the cljs process. There doesn't appear to be a way to connect it to the clj process or have a separate scratch buffer for each.

@expez
Copy link
Member

expez commented Dec 9, 2015

We should definitely improve this, but for now you can call cider-rotate-connection to switch the connection being used.

@Malabarba
Copy link
Member

On the topic of how to implement this, I think we should change the code that checks file extension to instead check the major-mode. I believe that would be more robust and would solve this issue.

@Malabarba Malabarba modified the milestone: v0.11 Dec 11, 2015
cap10morgan pushed a commit to cap10morgan/cider that referenced this issue Dec 23, 2015
…, not file types

This should make it work automatically for scratch buffers and possibly
macroexpand buffers.

Additionally takes the value of `cider-repl-type` into consideration.
This gives us a way of specifying that non-code temp buffers (like a doc
buffer) should use the cljs connection.
cap10morgan pushed a commit to cap10morgan/cider that referenced this issue Dec 24, 2015
…, not file types

This should make it work automatically for scratch buffers and possibly
macroexpand buffers.

Additionally takes the value of `cider-repl-type` into consideration.
This gives us a way of specifying that non-code temp buffers (like a doc
buffer) should use the cljs connection.
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

2 participants