我试图让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。任何帮助将不胜感激

最佳答案

在我的系统中,我必须这样做才能使其在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"))))

关于windows - Emacs + SLIME + SBCL(Windows),我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/29836816/

10-11 04:22