3

In Slime, I would like to clear the input I have currently typed into the REPL topline. What is the shortcut?

For example, if I type the below, it is missing one parenthesis and will not execute. How do I simply clear the whole text from my input line? I.e. instead of having to manually press delete on each character

 (let* ((x 5) (y (+ x x))
  (print y))

I could not find anything here: https://common-lisp.net/project/slime/doc/html/REPL-commands.html

These solutions seem to be different (but please correct me if I'm wrong) and relate to the whole screen, while I'm interested in clearing what I have typed but not yet evaluated:

emacs cider clear REPL buffer In emacs, how do I bind C-l to clear screen in slime?

1 Answer 1

7

It's C-c C-u, which is slime-repl-kill-input. A good trick is to use C-h b which will cause Emacs to show you the current bindings in a help buffer: you can then search through them looking for likely candidates. C-h m is also useful to show help on the current mode, which should show you the bindings as well (but may not: I'm not sure if it always does). The advantage of these things is that they show you what actually exists rather than what the manual thinks exists which may not be the same thing (even when there is a manual...).

Sign up to request clarification or add additional context in comments.

1 Comment

You are amazing :) Thank you

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.