错误Emacs粘液:eval-buffer:Symbol的函数定义无效:define-slime-contrib [英] Error Emacs slime: eval-buffer: Symbol's function definition is void: define-slime-contrib
问题描述
我在短时间内使用带Lisp的emacs(使用粘液)...这项工作,但是今天当我运行它时,出现此消息:
I'm using emacs with lisp (using slime) for a short time...this work but today when I run it appear this message:
eval-缓冲区:Symbol的函数定义无效:define-slime-contrib
eval-buffer: Symbol's function definition is void: define-slime-contrib
这意味着找不到我的史莱姆contrib文件夹吗?
means this than my slime contrib folder is not found?
我的.emacs真是一场灾难。对此感到抱歉。我在所有文件夹中进行搜索,每个人看起来都很好...
my .emacs is a disaster..sorry for this...I search inside all the folders and everyone look well...
;; 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)))
推荐答案
这是我的相关部分。 emacs:
This is the relevant part of my .emacs:
(setq inferior-lisp-program "/usr/local/bin/sbcl")
(add-to-list 'load-path "~/.emacs.d/slime/")
(require 'slime)
(slime-setup)
使用它时,我进入Lisp缓冲区并运行 M-x粘液
,瞧,它起作用了。
When using it, I go to the Lisp buffer and run M-x slime
and voila, it works.
这篇关于错误Emacs粘液:eval-buffer:Symbol的函数定义无效:define-slime-contrib的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!