//
you're reading...
Uncategorized

cider-mode keyboard shortcuts

cider-mode

Keyboard shortcut Description
C-x C-e C-c C-e Evaluate the form preceding point and display the result in the echo area. If invoked with a prefix argument, insert the result into the current buffer.
C-c C-w Evaluate the form preceding point and replace it with its result.
C-c M-e Evaluate the form preceding point and output it result to the REPL buffer. If invoked with a prefix argument, takes you to the REPL buffer after being invoked.
C-c M-p Load the form preceding point in the REPL buffer.
C-c C-p Evaluate the form preceding point and pretty-print the result in a popup buffer.
C-c C-f Evaluate the top level form under point and pretty-print the result in a popup buffer.
C-M-x C-c C-c Evaluate the top level form under point and display the result in the echo area. If invoked with a prefix argument, insert the result into the current buffer.
C-c C-r Evaluate the region and display the result in the echo area.
C-c C-b Interrupt any pending evaluations.
C-c C-m Invoke macroexpand-1 on the form at point and display the result in a macroexpansion buffer. If invoked with a prefix argument, macroexpand is used instead of macroexpand-1.
C-c M-m Invoke clojure.walk/macroexpand-all on the form at point and display the result in a macroexpansion buffer.
C-c C-n Eval the ns form.
C-c M-n Switch the namespace of the REPL buffer to the namespace of the current buffer.
C-c C-z Switch to the relevant REPL buffer. Use a prefix argument to change the namespace of the REPL buffer to match the currently visited source file.
C-u C-u C-c C-z Switch to the REPL buffer based on a user prompt for a directory.
C-c M-d Display default REPL connection details, including project directory name, buffer namespace, host and port.
C-c M-r Rotate and display the default nREPL connection.
C-c M-o Clear the entire REPL buffer, leaving only a prompt. Useful if you’re running the REPL buffer in a side by side buffer.
C-c C-k Load (eval) the current buffer.
C-c C-l Load (eval) a Clojure file.
C-c C-d d Display doc string for the symbol at point. If invoked with a prefix argument, or no symbol is found at point, prompt for a symbol.
C-c C-d j Display JavaDoc (in your default browser) for the symbol at point. If invoked with a prefix argument, or no symbol is found at point, prompt for a symbol.
C-c M-i Inspect expression. Will act on expression at point if present.
C-c M-t v Toggle var tracing.
C-c M-t n Toggle namespace tracing.
C-c C-u Undefine a symbol. If invoked with a prefix argument, or no symbol is found at point, prompt for a symbol.
C-c , Run tests for namespace.
C-c C-, Re-run test failures/errors for namespace.
C-c M-, Run test at point.
C-c C-t Show the test report buffer.
M-. Jump to the definition of a symbol. If invoked with a prefix argument, or no symbol is found at point, prompt for a symbol.
C-c M-. Jump to the resource referenced by the string at point.
M-, Return to your pre-jump location.
M-TAB Complete the symbol at point.
C-c C-d g Lookup symbol in Grimoire.
C-c C-d a Apropos search for functions/vars.
C-c C-d A Apropos search for documentation.

cider-repl-mode

Keyboard shortcut Description
RET Evaluate the current input in Clojure if it is complete. If incomplete, open a new line and indent. If invoked with a prefix argument is given then the input is evaluated without checking for completeness.
C-RET Close any unmatched parenthesis and then evaluate the current input in Clojure.
C-j Open a new line and indent.
C-c M-o Clear the entire REPL buffer, leaving only a prompt.
C-c C-o Remove the output of the previous evaluation from the REPL buffer.
C-c C-u Kill all text from the prompt to the current point.
C-c C-b C-c C-c Interrupt any pending evaluations.
C-up C-down Goto to previous/next input in history.
M-p M-n Search the previous/next item in history using the current input as search pattern. IfM-p/M-n is typed two times in a row, the second invocation uses the same search pattern (even if the current input has changed).
M-s M-r Search forward/reverse through command history with regex.
C-c C-n C-c C-p Move between the current and previous prompts in the REPL buffer. Pressing RETon a line with old input copies that line to the newest prompt.
TAB Complete symbol at point.
C-c C-d d Display doc string for the symbol at point. If invoked with a prefix argument, or no symbol is found at point, prompt for a symbol
C-c C-d j Display JavaDoc (in your default browser) for the symbol at point. If invoked with a prefix argument, or no symbol is found at point, prompt for a symbol.
C-c C-d g Lookup symbol in Grimoire.
C-c C-d a Apropos search for functions/vars.
C-c C-d A Apropos search for documentation.
C-c C-z Switch to the previous Clojure buffer. This complements C-c C-z used in cider-mode.
C-c M-f Select a function from the current namespace and insert into the REPL buffer.
C-c M-i Inspect expression. Will act on expression at point if present.
C-c M-n Select a namespace and switch to it.
C-c M-t v Toggle var tracing.
C-c M-t n Toggle namespace tracing.

Advertisements

Discussion

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: