我已经安装了 petite chez 方案并使用了 .el 配置文件,如下所示 - 我的 .emacs 文件:
(add-to-list 'load-path "/home/lambda/slime-2013-04-05") ; your SLIME directory
(setq inferior-lisp-program "/usr/bin/clisp") ; your Lisp system
(require 'slime)
(slime-setup)
(setq slime-protocol-version 'ignore)
;;petite scheme setup
(setq scheme-program-name "/home/lambda/csv8.4/custom/petite")
(load-file "/home/lambda/.emacs.d/scheme-setup.el")
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(custom-enabled-themes (quote (tango-dark))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
(add-hook 'lisp-mode-hook '(lambda ()
(local-set-key (kbd "RET") 'newline-and-indent)))
(if (fboundp 'global-font-lock-mode)
(global-font-lock-mode 1) ; GNU Emacs
(setq font-lock-auto-fontify t)) ; XEmacs
我正在使用的 scheme-setup.el 文件在这里:
https://github.com/tiljeset/emacs/blob/master/scheme-setup.el
现在,当我这样做时
$ emacs -nw -f run-scheme
并编译C-c C-k
,我得到错误:
Exception in compile-file: compile package is not loaded
Type (debug) to enter the debugger.
在 REPL 中。请问这个问题是什么原因造成的?
(compile-file filename.ss)
给出同样的错误。