-
-
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
Add an option to disable automatic cider-mode #1109
Conversation
What's the reasoning here? |
I don't want the extra key bindings and the mode line change. It is a minor mode after all: preferably, it should be opt-in. I ask to at least make it opt-out. |
While this is technically true, CIDER is pretty much unusable without it. The auto-enabling of the mode was borrowed by SLIME. I do have my reservations about it, but I'm also uncertain whether there's a better alternative to the current setup. |
I don't know of a better way either, but CIDER is very usable to me without a minor mode. That's why I propose an opt-out parameter. |
With regards to cider being opt-in, technically, you opt-in when you invoke the |
Not really. What if I just want a REPL? How is I know that this is a recent change, because I haven't seen this behavior before. I bound C-l to clear the REPL buffer in |
I'm not saying we shouldn't offer a repl-only option (quite the contrary, think we should). I was just replying to your other comment, that cider isn't opt-in. |
Fair point. I was just explaining why it is done as it is now.
This behaviour hasn't been changed since the earliest days of the project. I'll think a bit more on how to best tackle this, but you're the first person who has issues with this behaviour for about 3 years now. |
@abo-abo ^^ Btw, you should also mention this change in the changelog. |
* cider.el (cider-auto-mode): New defcustom. (cider--connected-handler): Don't auto-enable `cider-mode' for all `clojure-mode' buffers when `cider-auto-mode' is nil.
Add an option to disable automatic cider-mode
(cider--connected-handler): Don't auto-enable
cider-mode' for all
clojure-mode' buffers when `cider-auto-mode' is nil.