Question - what's the current status of the Emacs package/module?
I looked at it and played with it a bit, I think building it into something that people (including me) could just plug-and-play with would be nice, as well as potentially augmenting it with some bells and whistles (like some more specialised syntax-highlighting built on top of tree-sitter).
I haven't heard many discussions on emacs.
Ohk, so there's https://gitlab.com/tad-lispy/roc-mode
@Tad Lispy
I've made a couple PRs to @Tad Lispy's emacs package, but they haven't been reviewed yet, so I've been working on a friendly fork here: https://gitlab.com/AjaiKN/roc-mode/. Hopefully I've made a little progress towards making it more plug-and-play.
I've added more syntax highlighting, started adding indentation rules, and made keybindings for several roc
CLI commands (including running tests, formatting buffers, and using the REPL). I've also added more detailed documentation in the README. Feedback is welcome!
Hey @Ajai Nelson! Thanks for the PRs. I'm sorry I didn't pick them up sooner. Seems like I'm not getting notifications from GitLab for some reason. They both look good to merge, just need to test them in my Emacs.
No worries at all @Tad Lispy!
I've merged the PRs from you @Ajai Nelson. Would you like commit rights to my repo? Alternatively we can setup an organization to work on this package together.
Commit rights would be great @Tad Lispy!
Done @Ajai Nelson. Welcome aboard.
Wow! You have been very busy @Ajai Nelson. Thank you! I won't have time to engage with Roc for the next two months, but will try to keep an eye on what's going on. Feel free to add yourself to the list of authors.
https://gitlab.com/tad-lispy/roc-mode now supports all the stuff I mentioned above, as well as code folding (if you enable hs-minor-mode
, which is built in to Emacs) and several other small improvements.
There's also experimental support for @Ian McLerran's roc-start
if it's installed. Type M-x roc-start-app
to try it!
Not sure if anyone is actually using our Emacs package, but in case anyone is, there's been a breaking change: we've renamed it from roc-mode
to roc-ts-mode
to conform with the naming convention for tree-sitter-based modes. Also, our package should be up on MELPA pretty soon!
@Ajai Nelson Thanks! I'm using roc-ts-mode
and it's working great! (Don't need melpa: my Emacs package manager (elpaso) allows me to insert "user recipes" and mine is pointing directly to @Tad Lispy's repo. :+1: )
I’m happy to hear that @Rick Hanson! Let me know if you have any issues or suggestions
@Ajai Nelson I'm also using roc-ts-mode
and it's great. it works nicely alongside eglot , thanks for your work :smile:
Last updated: Jul 06 2025 at 12:14 UTC