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

发布于 2024-10-05 12:14:44 字数 1324 浏览 8 评论 0原文

我在短时间内使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

随风而去 2024-10-12 12:14:44

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

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

使用它时,我转到 Lisp 缓冲区并运行 Mx slime 瞧,它起作用了。

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)

When using it, I go to the Lisp buffer and run M-x slime and voila, it works.

我是男神闪亮亮 2024-10-12 12:14:44

尝试将 .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)))

Try changing your .emacs file from what you had to the following:

;; 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)))
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文