我是 Emacs 的新手,遇到了一些麻烦。我希望racket
使用 Geiser 从 Emacs 运行。我告诉 Emacs 其中racket
如下:
(setq geiser-racket-binary "/Applications/Racket\ v6.0/DrRacket.app")
(我从 StackOverflow 问题中得到这个:设置 Racket Geiser Emacs 路径。)
我首先编译保存的球拍代码。但是,当我尝试点击M-x后跟时run-geiser
,它会提示我执行方案。此时我键入racket
. Emacs 现在打开一个球拍 REPL 缓冲区,并在该缓冲区中留下错误:
无法执行程序: /Applications/Racketv6.0/DrRacket.app 。
如果有帮助,这是我的.emacs
文件:
(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.
'(geiser-repl-startup-time 20000)
'(package-archives (quote (("gnu" . "elpa gnu packages website") ("melpa" . "http://melpa.milkbox.net/#/"))))
'(package-directory-list (quote ("/Applications/Emacs.app/Contents/Resources/site-lisp/elpa")))
'(python-python-command "/usr/local/bin/python3"))
(setq geiser-racket-binary "/Applications/Racket\ v6.0/DrRacket.app")
(setq-default cursor-type 'bar)
(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.
'(default ((t (:inherit nil :stipple nil :background "controlDarkShadowColor" :foreground "Green" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 120 :width normal :foundry "apple" :family "Monaco")))))
(require 'package)
(add-to-list 'package-archives
'("marmalade" .
"http://marmalade-repo.org/packages/"))
(package-initialize)