summaryrefslogtreecommitdiff
path: root/doc/using_the_repl.md
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@batsov.com>2018-01-16 16:18:32 +0200
committerBozhidar Batsov <bozhidar@batsov.com>2018-01-16 16:18:32 +0200
commitab2b6866676fec2142c6a2d416c14f4c2d916800 (patch)
treeb6dbb47c0356502d80b413911386c4799a06a9bf /doc/using_the_repl.md
parent1b32df8fb7fbee427c874538b3bb8590ae078cf2 (diff)
Add a note about customizing the initial REPL namespace
Diffstat (limited to 'doc/using_the_repl.md')
-rw-r--r--doc/using_the_repl.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/using_the_repl.md b/doc/using_the_repl.md
index 6ecf9c49..f2a46f21 100644
--- a/doc/using_the_repl.md
+++ b/doc/using_the_repl.md
@@ -220,6 +220,16 @@ section of your Leiningen project's configuration.
:repl-options {:init (set! *print-length* 50)}
```
+#### Customizing the initial REPL namespace
+
+Normally the CIDER REPL will start with the `user` namespace.
+You can supply a default value for REPL sessions via the `repl-options` section
+of your Leiningen project's configuration.
+
+```clojure
+:repl-options {:init-ns 'my-ns}
+```
+
#### Customizing newline interaction
Ordinarily <kbd>Return</kbd> sends a form for evaluation meaning entering a