-
-
Notifications
You must be signed in to change notification settings - Fork 648
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
A way to specify a default for "Which command should be used?" in cider-jack-in
#1672
Comments
This makes sense. We can certainly do it. |
I'm think we could change the prompt to something like this:
If the user holds shift, we save the choice to a custom variable. They can make CIDER “forget” the choice by invoking |
Interesting idea, although it's not something I've seen so far in Emacs (the "hold shift" part at least). |
Yeah. It would at least let us avoid an extra prompt, and probably make things easier for everybody. |
cider-jack-in
cider-jack-in
We talked about this in slack. Thinking so far (and this is by no means binding or the "right" answer): Have a single defvar that holds the preferred lein or boot, set to nil and must be explicitly set. When there are multiple build systems identified, check to see if the resolution strategy (this variable) is set. If so, use this one, otherwise do the current behavior which is to ask the user. |
Sounds good! Just 3 small changes:
|
…d choice (clojure-emacs#1705) When there are artifacts from multiple build systems, eg: lein, boot, etc, look in `cider-preferred-build-system`.
My thought
M-x cider-jack-in
(C-c M-j
) I am presented with a minibuffer saying:Which command should be used?
... I believe this is because our team semi-recently put some boot scripts along side our project.clj.It would be nice if I could set an elisp variable, or some other mechanism, to force always
lein
there, to remove one-last enter-key press before the repl starts for projects where I know I always want to start the repl withlein
.Thanks!
CIDER version information
Lein/Boot version
2.5.3
Emacs version
24.4.1
Operating system
Ubuntu 15.04
The text was updated successfully, but these errors were encountered: