错误Emacs slime:eval-buffer:符号的函数定义为void:define-slime-contrib

时间:2010-12-01 04:02:56

标签: emacs slime

我正在短时间内使用带有lisp(使用slime)的emacs ...这项工作但是今天当我运行它时会显示以下消息:

eval-buffer:符号的函数定义为void:define-slime-contrib

意味着没有找到我的slime contrib文件夹?

我的.emacs是一场灾难......对此我很感兴趣...我在所有文件夹里搜索,每个人看起来都很好......

;; SLIME ==================================================
'

;; Orden: M-x slime
(setq inferior-lisp-program "/usr/bin/clisp")  ; 


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


;;(require 'slime-autoloads)                    
(add-to-list 'load-path "/etc/emacs/site-start.d/")                        ;; I review all this folders and
(add-to-list 'load-path "/usr/lib/emacsen-common/packages/install/")       ;; the address look good
(add-to-list 'load-path "/usr/share/doc/slime/")
(add-to-list 'load-path "/usr/share/emacs/site-lisp/")
(add-to-list 'load-path "/usr/share/emacs/site-lisp/slime/")
(add-to-list 'load-path "/usr/share/emacs/site-lisp/slime/contrib/")
(add-to-list 'load-path "/usr/share/emacs/site-lisp/slime/")
(require 'slime)  

(add-hook 'lisp-mode-hook '(lambda ()
      (local-set-key (kbd "RET") 'newline-and-indent)))

(add-hook 'slime-mode-hook '(lambda ()
      (local-set-key (kbd "RET") 'newline-and-indent)))

(add-hook 'html-mode-hook '(lambda ()
      (local-set-key (kbd "RET") 'newline-and-indent)))

2 个答案:

答案 0 :(得分:4)

这是我的.emacs的相关部分:

  (setq inferior-lisp-program "/usr/local/bin/sbcl") 
  (add-to-list 'load-path "~/.emacs.d/slime/") 
  (require 'slime)
  (slime-setup)

使用它时,我转到Lisp缓冲区并运行M-x slime并且瞧,它可以工作。

答案 1 :(得分:2)

尝试将您的.emacs文件从以下内容更改为:

;; SLIME ==================================================

;; Orden: M-x slime
(setq inferior-lisp-program "/usr/bin/clisp")

(add-to-list 'load-path "/etc/emacs/site-start.d/")                        ;; I review all this folders and
(add-to-list 'load-path "/usr/lib/emacsen-common/packages/install/")       ;; the address look good
(add-to-list 'load-path "/usr/share/emacs/site-lisp/")
(add-to-list 'load-path "/usr/share/emacs/site-lisp/slime/")

(require 'slime)  
(slime-setup)

(add-hook 'lisp-mode-hook '(lambda ()
      (local-set-key (kbd "RET") 'newline-and-indent)))

(add-hook 'slime-mode-hook '(lambda ()
      (local-set-key (kbd "RET") 'newline-and-indent)))

(add-hook 'html-mode-hook '(lambda ()
      (local-set-key (kbd "RET") 'newline-and-indent)))