现在的位置: 首页 > 综合 > 正文

emacs

2013年01月29日 ⁄ 综合 ⁄ 共 1066字 ⁄ 字号 评论关闭

--->  Building slime

--->  Staging slime into destroot

--->  Installing slime @20110122_0

--->  Activating slime @20110122_0

To use SLIME, you need to have a Common Lisp installed with which

you wish to interact.  At the moment,  'sbcl', 'abcl', 'ccl',

'ecl' and 'clisp' all work.  As a convenience, port variants for SLIME

exist which require the installation of these Lisps.

 

Then put the following in your ~/.emacs:

 

(add-to-list 'load-path "/opt/local/share/emacs/site-lisp/slime")

(require 'slime-autoloads)

(setq slime-lisp-implementations

     `((sbcl ("/opt/local/bin/sbcl"))

       (abcl ("/opt/local/bin/abcl"))

       (clisp ("/opt/local/bin/clisp"))))

(add-hook 'lisp-mode-hook

           (lambda ()

             (cond ((not (featurep 'slime))

                    (require 'slime) 

                    (normal-mode)))))

 

(eval-after-load "slime"

   '(slime-setup '(slime-fancy slime-banner)))

 

Populate the initialization list in SLIME-LISP-IMPLEMENTATIONS

with the correct paths to the Common Lisp exectuables you wish to use.

 

Then, 'M-x slime' from Emacs should connect you to the first

CL implementation in the list. 'C-- M-x slime' will present

an interactive chooser for additional implementations in the list.

 

--->  Cleaning slime

抱歉!评论已关闭.