错误Emacs slime:eval-buffer:符号的函数定义为void:define-slime-contrib
我在短时间内使用 emacs 和 lisp(使用 slime)...这个工作正常,但是今天当我运行它时出现以下消息:
eval-buffer: Symbol's functionDefinition is 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)))
I'm using emacs with lisp (using slime) for a short time...this work but today when I run it appear this message:
eval-buffer: Symbol's function definition is void: define-slime-contrib
means this than my slime contrib folder is not found?
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)))
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是我的 .emacs 的相关部分:
使用它时,我转到 Lisp 缓冲区并运行
Mx slime
瞧,它起作用了。This is the relevant part of my .emacs:
When using it, I go to the Lisp buffer and run
M-x slime
and voila, it works.尝试将 .emacs 文件从原来的内容更改为以下内容:
Try changing your .emacs file from what you had to the following: