Skip to content

Commit a0cf94b

Browse files
committed
Add a few pointers about evaluating code in the minibuffer
1 parent 8ebdd64 commit a0cf94b

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,25 @@ evaluation. Much of the functionality is centered around additional major modes,
739739
which provide you with convenient ways to get something done or inspect
740740
something.
741741

742+
### Evaluating Clojure code in the minibuffer
743+
744+
You can evaluate Clojure code in the minibuffer from pretty much everywhere
745+
by using `M-x cider-read-and-eval` (bound in `cider-mode` buffers to `C-c C-:`).
746+
`TAB` completion will work in the minibuffer, just as in a REPL/source buffer.
747+
748+
You can also enable `eldoc-mode` in the minibuffer by adding the following to your
749+
config:
750+
751+
```el
752+
(add-hook 'eval-expression-minibuffer-setup-hook #'eldoc-mode)
753+
```
754+
755+
You can also enable `paredit` or `smartparens` for minibuffer evaluations:
756+
757+
```el
758+
(add-hook 'eval-expression-minibuffer-setup-hook #'paredit-mode)
759+
```
760+
742761
### Macroexpansion
743762

744763
Pressing <kbd>C-c C-m</kbd> after some form in a source buffer or the REPL will

0 commit comments

Comments
 (0)