gpt4 book ai didi

emacs - 错误 Emacs slime : eval-buffer: Symbol's function definition is void: define-slime-contrib

转载 作者:行者123 更新时间:2023-12-02 04:38:12 27 4
gpt4 key购买 nike

我在短时间内使用 emacs 和 lisp(使用 slime)...这个工作正常,但是今天当我运行它时出现以下消息:

eval-buffer:Symbol 的函数定义为 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)))

最佳答案

这是我的 .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 瞧,它起作用了。

关于emacs - 错误 Emacs slime : eval-buffer: Symbol's function definition is void: define-slime-contrib,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4321074/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com