diff options
author | Bozhidar Batsov <bozhidar@batsov.com> | 2016-03-02 16:18:35 +0200 |
---|---|---|
committer | Bozhidar Batsov <bozhidar@batsov.com> | 2016-03-02 16:18:35 +0200 |
commit | a0cf94b078451f6ca734e958f98bdf714aaf31e0 (patch) | |
tree | d5bdfaab85066168087417de271a5f5376a081ed | |
parent | 8ebdd643e460bb7aa2f6d227f9c2ffab2eafd9c1 (diff) |
Add a few pointers about evaluating code in the minibuffer
-rw-r--r-- | README.md | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -739,6 +739,25 @@ evaluation. Much of the functionality is centered around additional major modes, which provide you with convenient ways to get something done or inspect something. +### Evaluating Clojure code in the minibuffer + +You can evaluate Clojure code in the minibuffer from pretty much everywhere +by using `M-x cider-read-and-eval` (bound in `cider-mode` buffers to `C-c C-:`). +`TAB` completion will work in the minibuffer, just as in a REPL/source buffer. + +You can also enable `eldoc-mode` in the minibuffer by adding the following to your +config: + +```el +(add-hook 'eval-expression-minibuffer-setup-hook #'eldoc-mode) +``` + +You can also enable `paredit` or `smartparens` for minibuffer evaluations: + +```el +(add-hook 'eval-expression-minibuffer-setup-hook #'paredit-mode) +``` + ### Macroexpansion Pressing <kbd>C-c C-m</kbd> after some form in a source buffer or the REPL will |