Next: , Previous: , Up: SLIME Mode   [Contents][Index]


17.6.3 Running SLIME

SLIME is started with the Emacs command:

M-x slime

This uses the inferior-lisp package to start a Lisp process, loads and starts the Lisp-side server (known as “Swank”), and establishes a socket connection between Emacs and Lisp. Finally a REPL buffer is created where you can enter Lisp expressions for evaluation.

Slime Editing Commands

The file slime-editing-commands.el contains the commands used to control ‘SLIME’.

To tell SLIME which Lisp program to run, add a prefix argument:

C-u M-x slime

To choose from multiple Lisp programs, add a negative prefix:

M-- M-x slime
slime-close-all-parens-in-sexp

C-c C-]

Balance parentheses of open s-expressions at point.

slime-reindent-defun

C-c M-q

Reindent the current defun, or refill the current paragraph. If the current defun has unbalanced parens, an attempt will be made to fix it before reindenting.

slime-beginning/end-of-defun

M-C-a/e

slime-compile-defun

C-c C-c

slime-switch-to-output-buffer

C-c C-z

Switch to the REPL.

=

slime-load-file

C-c C-l

Load a lisp file.

slime-compile-and-load-file

C-c C-k

Compile and load the buffer’s file and highlight compiler notes.