1

我在 emacs 24 中安装了 sml-mode。我想用 Poly/ML 直接在 emacs 中编译代码,我该怎么做?我已经安装了 Poly/ML,然后键入 sml-poly-ml 以启动解释器,但我说不匹配。我在 windows 和 ubuntu 上都进行了测试。该怎么办?

更新:如果其中一些,我会很受伤: https ://groups.google.com/forum/#!msg/comp.emacs/jlOX_aP6j40/afuuUlVemWUJ 或 http://www.cs.cmu.edu/~fp/ course/98-linear/lib/emacs/sml-poly-ml.el 会起作用吗?我正在尝试阅读,但不完全理解。我想我应该把 (autoload 'sml-poly-ml "sml-poly-ml" "Set up and run Poly/ML." t) 放在 .emacs.d 中?什么是 emacs lisp 文件?我似乎需要 sml-poly-ml.el 并且不知道这是否作为标准包含在 sml-mode 中?然后我就卡住了...

4

1 回答 1

2

我从未使用过 Poly/ML,但是我在 SML/NJ 中进行了一些编程,sml-mode我的回答是基于这种有限的经验。

你可以使用C-c C-s或doM-x run-sml RET来启动sml解释器,sml-compile必然是C-c C-c.

顺便说一句,找出特定于模式的键绑定的更好方法是执行C-h mor M-x describe-mode RET

于 2014-01-23T14:49:31.140 回答