Emacs support for "modern" ReScript

Emacs is not supported, but an unofficial method using the LSP server seems to work for Emacs users. Does this still work? The documentation says “only legacy v8.0.0 Reason/OCaml syntax support”, though I am completely new to this, coming from a ClojureScript background. Does this mean Emacs cannot be used at all with the instructions listed on the site?

I am using GitHub - jjlee/rescript-mode: A major mode for editing ReScript

rescript-mode depends on LSP so I configurated it to the one installed in the VSCode ReScript extension:

(custom-set-variables
 '(lsp-rescript-server-command
     '("node" "/Users/xxx/.vscode/extensions/chenglou92.rescript-vscode-1.19.6/server/out/server.js" "--stdio")))
)

Seems to work fine.

2 Likes