You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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-xcider-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.
The text was updated successfully, but these errors were encountered:
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.
…, 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.
…, 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.
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
andcider-scratch
is that the major mode isclojure-mode
, but it is connected to thecljs
process. There doesn't appear to be a way to connect it to theclj
process or have a separate scratch buffer for each.The text was updated successfully, but these errors were encountered: