Emacs + SLIME + SBCL(Windows)

时间:2015-04-24 00:45:23

标签: windows emacs lisp sbcl slime

我正试图让Emacs,Slime和SBCL在Windows 7机器上一起工作。我通常使用Linux,所以我对这个过程没有经验。问题是当我尝试启动SLIME时出现此错误:Searching for program: permission denied, sbcl

这是我的Emacs 24 init.el

(require 'package) ;; You might already have this line
(add-to-list 'package-archives
         '("melpa" . "http://melpa.org/packages/") t)
(when (< emacs-major-version 24)
  ;; For important compatibility libraries like cl-lib
  (add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")))
(package-initialize) ;; You might already have this line
(setq package-enable-at-startup nil)
(setq inferior-lisp-program "sbcl")
(setq slime-auto-connect 'ask)

(defun my-slime-setup ()

 (require 'slime)

  (slime-setup))

(defvar my--slime-setup-done nil)
(defun my-slime-setup-once ()
  (unless my--slime-setup-done
    (my-slime-setup)
    (setq my--slime-setup-done t)))
(defadvice lisp-mode (before my-slime-setup-once activate)
  (my-slime-setup-once))

如果有任何不同,我的SBCL路径为C:\Program Files\Steel Bank Common Lisp\1.2.7\sbcl。任何帮助将不胜感激

1 个答案:

答案 0 :(得分:1)

在我的工作中,我必须这样做才能让它在Windows上运行:

(setq slime-lisp-implementations '((sbcl ("C:\\Program Files\\Steel Bank Common Lisp\\1.2.8\\sbcl.exe" "--core" "C:\\Program Files\\Steel Bank Common Lisp\\1.2.8\\sbcl.core"))))