Tech News
← Back to articles

Neocaml – Rubocop Creator's New OCaml Mode for Emacs

read original related products more articles

neocaml

neocaml is a new Emacs package for programming in OCaml. It features both a couple of major modes (for OCaml and OCaml Interface), using TreeSitter, and integration with an OCaml toplevel (a.k.a. REPL).

It's also as cool as Neo from "The Matrix". ;-)

Because caml-mode is ancient, and tuareg-mode is a beast. (it's very powerful, but also very complex) The time seems ripe for a modern, leaner, TreeSitter-powered mode for OCaml.

There have been two other attempts to create TreeSitter-powered major modes for Emacs, but they didn't get very far:

Looking at the code of both modes, I inferred that the authors were probably knowledgable in OCaml, but not very familiar with Emacs Lisp and Emacs major modes in general. For me it's the other way around, and that's what makes this a fun and interesting project for me:

I enjoy working on Emacs packages

I want to do more work with TreeSitter, now that it's getting more traction

I really like OCaml and it's one of my favorite "hobby" languages

They say that third time's the charm, right?

... continue reading