Previous: Communication style, Up: Lisp-side



7.2.2 Other configurables

These Lisp variables can be configured via your ~/.swank.lisp file:

SWANK:*CONFIGURE-EMACS-INDENTATION*
This variable controls whether indentation styles for &body-arguments in macros are discovered and sent to Emacs. It is enabled by default.
SWANK:*GLOBALLY-REDIRECT-IO*
When true this causes the standard streams (*standard-output*, etc) to be globally redirected to the REPL in Emacs. When NIL (the default) these streams are only temporarily redirected to Emacs using dynamic bindings while handling requests. Note that *standard-input* is currently never globally redirected into Emacs, because it can interact badly with the Lisp's native REPL by having it try to read from the Emacs one.
SWANK:*GLOBAL-DEBUGGER*
When true (the default) this causes *DEBUGGER-HOOK* to be globally set to SWANK:SWANK-DEBUGGER-HOOK and thus for SLIME to handle all debugging in the Lisp image. This is for debugging multithreaded and callback-driven applications.
SWANK:*SLDB-PRINTER-BINDINGS*
SWANK:*MACROEXPAND-PRINTER-BINDINGS*
SWANK:*SWANK-PPRINT-BINDINGS*
These variables can be used to customize the printer in various situations. The values of the variables are association lists of printer variable names with the corresponding value. E.g., to enable the pretty printer for formatting backtraces in SLDB, you can use:
          (push '(*print-pretty* . t) swank:*sldb-printer-bindings*).
     

SWANK:*USE-DEDICATED-OUTPUT-STREAM*
This variable controls an optimization for sending printed output from Lisp to Emacs. When t a separate socket is established solely for Lisp to send printed output to Emacs through. Without the optimization it is necessary to send output in protocol-messages to Emacs which must then be decoded, and this doesn't always keep up if Lisp starts “spewing” copious output.
SWANK:*DEDICATED-OUTPUT-STREAM-PORT*
When *USE-DEDICATED-OUTPUT-STREAM* is t the stream will be opened on this port. The default value, 0, means that the stream will be opened on some random port.
SWANK:*LOG-EVENTS*
Setting this variable to t causes all protocol messages exchanged with Emacs to be printed to *TERMINAL-IO*. This is useful for low-level debugging and for observing how SLIME works “on the wire.” The output of *TERMINAL-IO* can be found in your Lisp system's own listener, usually in the buffer *inferior-lisp*.