common-lispsbclslime

Passing SBCL options to slime?


How do I increase the stack size in a slime session.

I can do it in the terminal with:

$> sbcl --control-stack-size 5

How do I do this in slime?


Solution

  • In your emacs init.el or .emacs file you can include program arguments in the settings of slime-lisp-implementations. For example:

    ;; Set available Lisp implementations
    (setq slime-lisp-implementations
          '((sbcl ("/usr/local/bin/sbcl" "--control-stack-size" "5"))
            (cmucl ("lisp"))
            (ccl ("ccl64"))
            (clisp ("clisp"))))