Gnu/Linux配置:

  1. 安装slime

1
M-x package- install  RET slime RET


  1. 设置.emacs配置文件

1
2
3
4
;; sbcl slime                                                                                                                          
(add-to-list 'load-path  "~/.emacs.d/elpa/slime" )
(setq inferior-lisp-program  "/usr/bin/sbcl" )
(setq slime-contribs '(slime-fancy))

2. 启动slime

1
2
3
4
5
6
7
8
; SLIME 2015-02-19
CL-USER> (+ 3 4)
7                                                                                                                                    
   
CL-USER> (* 444 (+ 3 4))
3108                                                                                                                                 
   
CL-USER>