Error Emacs slime: eval-buffer: Symbol's function definition is void: define-slime-contrib

两盒软妹~` 提交于 2019-12-06 05:34:46

问题


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)))

回答1:


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.




回答2:


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)))


来源:https://stackoverflow.com/questions/4321074/error-emacs-slime-eval-buffer-symbols-function-definition-is-void-define-sli

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!