emacscommon-lispslime

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


Is there a way to bind C-l in SLIME to clear the screen?

Thank you!


Solution

  • What you probably want is slime-repl-clear-buffer, which is by default bound to C-c M-o. You can bind the function on the Slime REPL buffer in the normal way, for example

    (local-set-key [(control l)] 'slime-repl-clear-buffer)