Skip to content

Commit 2c0ca62

Browse files
committed
Document cider-auto-mode
1 parent a092c74 commit 2c0ca62

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,18 @@ experience.
242242
(add-hook 'cider-mode-hook #'eldoc-mode)
243243
```
244244

245+
* Suppress auto-enabling of `cider-mode` in `clojure-mode` buffers, when starting
246+
CIDER:
247+
248+
```el
249+
(setq cider-auto-mode nil)
250+
```
251+
252+
By default CIDER will enable `cider-mode` in all `clojure-mode` buffers when the
253+
first CIDER connection is established. It will also add a `clojure-mode` hook to
254+
enable it on newly created `clojure-mode` buffers. The configuration snippet
255+
above allows you to override this (somewhat non-standard) behavior.
256+
245257
* Log communication with the nREPL server (**extremely useful for debugging CIDER problems**):
246258

247259
```el

0 commit comments

Comments
 (0)