I'm brand-spanking new to LISP. I'm trying to get started with it, and I installed Steel Bank Common Lisp as well as SLIME so I can program in emacs. As far as I know, Slime simply provides an interactive mode, whereas editting .lisp and .el files is done in emacs lisp-mode. I'm trying to figure out how to use them in tandem.
I have a basic program where I defun a fibonacci number function, and I would like to simply hit M-x slime
and test it out in slime. When I last tried, it said the function is undefined, leading me to believe that the slime buffer is not connected in any way to the .el file I opened slime from.
Error Message:
; SLIME 2.20
CL-USER> (fib 30)
; in: FIB 30
; (FIB 30)
;
; caught STYLE-WARNING:
; undefined function: FIB
;
; compilation unit finished
; Undefined function:
; FIB
; caught 1 STYLE-WARNING condition
Is there an easy way to do what I'm trying to accomplish? I'm looking put myself into a position that promotes test driven development in a powerful language like Common Lisp.
If you have any help on this issue, or have any advice or resources for someone picking up Lisp, it would be greatly appreciated. Thanks!