1

I am using Tuareg mode for Emacs.

I am also using lwt. lwt has some syntax extension, but Tuareg cannot recognize them and it is ugly without indention and coloring.

I found this:

https://github.com/skydeck/lwt/blob/master/utils/tuareg-2.0.4.patch

It is a patch for tuareg-2.0.4 to enable lwt coloring.


However, I am using Tuareg-2.0.5 and I tried the patch directly, it failed.

I am not sure how to downgrade Tuareg, so I just downloaded the files of tuareg-2.0.4 and copy them to the elpa/tuareg-2.0.5 folder and then I did the patch again.

This was successfully patched as it said, but still my emacs cannot recognize lwt.


Can anyone tell me how?

4

1 回答 1

3

恕我直言,您不必更换库存tuareg.el

1.将你打过补丁的tuareg.el放到~/.emacs.d/目录下

2.将以下行添加到您的~/.emacs配置中

(add-to-list 'load-path "~/.emacs.d/")
(load "tuareg")

3.(可选)字节编译您的自定义tuareg.el

M-x byte-compile-file

股票图阿雷格模式

股票图阿雷格模式

带有 lwt 补丁的图阿雷格模式

带有 lwt 补丁的图阿雷格模式

于 2013-06-29T11:49:05.973 回答