在Emacs中运行Chicken方案遇到麻烦

Eti*_*ais 2 lisp emacs scheme chicken-scheme

我最近通过球拍进入了Scheme,现在想使用Chicken Scheme。除了Racket之外,Emacs似乎是我在Scheme中开发的唯一选择,因此我启动了不是很擅长的Emacs。

我以前已经使用此方法为SBCL设置了emacs教程,但是我对Emacs完全没有任何经验。(注意:我在Windows上)

我做了什么:

  • 我像上面的教程一样设置了类似unix的文件结构,并在Z:\ home \ myname \ bin \ chicken-iup中安装了Chicken-Scheme。

  • 我尝试按照此页面上的说明进行操作但并不多。它说我需要quack,但并没有太多解释,我只是从网站上下载quack.el并将其放在我的site-lisp文件夹中

  • 我在.emacs文件夹中添加了以下几行

    (setq scheme-program-name“ csi-:c”)(需要'quack')

  • 在先前链接的页面上,有此快照,这就是我想要的快照

在此处输入图片说明

您可以在顶部看到一个打开的文件来写入文本,而在底部则是REPL,但是,当我打开emacs并执行Mx运行方案时,我无法理解

我有两个选择,Mx运行方案,然后“鸡肉”为我提供了“鸡肉”简介屏幕,但立即显示“过程已完成”

在此处输入图片说明

另一方面,Mx运行方案csi只是给了我一个空白缓冲区,似乎没有REPL

在此处输入图片说明

直接在Windows中运行csi.exe会打开一个带有介绍性文本和repl的控制台窗口,但我想将它像第一个快照一样放在emacs中,这不起作用

我也尝试过鸡肉史莱姆SWANK后端,但是无法正常工作,并且搜索google并没有太大帮助

那么,有人知道我需要做些什么才能在emacs中使用Chicken Scheme开发吗?

(或者,如果我想知道在DrRacket之外还有其他Scheme开发环境,除了DrRacket或Emacs之外,我没有找到太多信息)

提前致谢

sja*_*aan 5

M-x run-scheme提示您输入Scheme解释器很奇怪。

Normally, (setq scheme-program-name "csi -:c") should define which Scheme program to use with run-scheme. But perhaps Quack overrides run-scheme, which means it wouldn't use scheme-program-name (it's under "built-in support", and indeed the standard Scheme-mode will use this). I'm not a fan of Quack, but you could try typing "csi -:c" instead of plain "csi". Like the manual says,

The -:c is to force interactive mode, which is required on some platforms (most notably Windows).

Because Emacs can't fake a console on Windows like it can on *nix, CHICKEN thinks it's reading from a pipe on stdin, so it won't show you a prompt.

就像我说的,我不是Quack的粉丝;AFAIK除了“ fancy lambda”和一个大的帮助菜单外,没有添加任何东西(但我从不使用Emacs中的菜单)。我宁愿只(require 'quack)从您的列表中删除.emacs(保留(setq scheme-program-name)),然后重新启动Emacs,然后键入M-x run-scheme以查看会发生什么。