Setting up a development environment is such a pain. In short, here is my final configs:
- Aquamacs emacs
- SLIME without SLDB mode
- clisp with debugger commands working
- quicklisp (lisp package manager)
I also tried many other combinations. For example, sbcl should be a faster alternative to clisp, but I can’t make its debugger work. sbcl also support better linking to slime and sldb, but sldb isn’t working well. Emacs 24 seems to be a better emacs environment because it has package manager built right into it. However, I tired emacs starter-kit and slime installation through its package manager, and it just don’t work. Any suggestions would be greatly welcome. ;)
Instructions
- Download osx-gcc if you haven’t.
- Install homebrew.
brew install clisp
.- Setting up quicklisp.
- Download quicklisp.lisp
clisp -i quicklisp.lisp
[1]> (quicklisp-quickstart:install)
[2]> (ql:add-to-init-file)
[3]> (quit)
- Download Aquamacs emacs
- Install Aquamacs emacs SLIME plugin
cat '(setq inferior-lisp-program "/usr/local/bin/clisp")' >> ~/.emacs
Then you can use trace
, step
and other debug utilities in emacs SLIME. Enjoy
it!
Update
I found out how to enable STEP-MODE
in sbcl form this post.
In short, put this in your .sbclrc
.
1
|
|
and in your .emacs
1
|
|