質問

How to install the slime into emacs under Win7?

I download a compact package with '.tgz'. But it seems for linux. But there is really not one thing for windows(win 32 OS).

I unfold this package and I find there are lots of documents.

役に立ちましたか?

解決

It's actually the same as for other operating systems, as far as I can tell. (At least, it always worked for me under FreeBSD/ArchLinux/Win7.) First, you unpack to a location you like, then add something like this to your .emacs (assuming you unpacked somewhere under your user directory):

(add-to-list 'load-path "~/my/path/to/slime/")
;; (add-to-list 'load-path "~/my/path/to/slime/contrib/") ; for optional features

(slime-setup
;; '(slime-fancy slime-asdf slime-references              ; optional features
;;   slime-indentation slime-xref-browser)
)

(setq slime-lisp-implementations
      '((ccl ("~/path/to/ccl/wx86cl"))
        (clisp ("~/path/to/clisp-2.49/clisp" "-modern"))) ; giving a command arg
      slime-default-lisp 'ccl)

Restart Emacs or type C-x C-e behind each of these toplevel forms. Then, type M-x slime RET (or C-u M-x slime RET if you want to choose between the implementations in slime-lisp-implementations, otherwise slime-lisp-default will be used) and it should just work (it does for me). The setting of slime-lisp-implementations is optional – you can also give the path to your lisp implementation executable by hand when starting Slime.

Assuming you want to use Slime with CL, since there is no Clojure tag. If you want to use it with Clojure, things are unfortunately a little different and both versions don't play very nicely together. The recommended way for use with Clojure, last time I checked, would be installation using the package system of Emacs 24 or, if you're using an older version, ELPA (which is essentially the same).

他のヒント

This worked for me,

  • Get a Slime copy from https://github.com/slime/slime, either by git clone or by downloading the zip. Unzip and save it in D:/myuser/slime-2.13, for example
  • Download and install CLISP
  • Add this to the .emacs file, usually located in C:/users/myuser/AppData/Roaming:

    ; This is the path where you've saved Slime in the first step
    (add-to-list 'load-path "D:/myuser/slime-2.13/")
    (require 'slime-autoloads)
    ; This is the path where CLISP was installed. 
    ; Use Progra~1 for "Program Files" and Progra~2 for "Program Files (x86)"
    (setq inferior-lisp-program "/C/Progra~2/clisp-2.49/clisp.exe")
    
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top