Stream: contributing

Topic: Emacs Package


view this post on Zulip ArcaneQuark (Jun 03 2024 at 21:21):

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).

view this post on Zulip Luke Boswell (Jun 03 2024 at 21:52):

I haven't heard many discussions on emacs.

view this post on Zulip Luke Boswell (Jun 03 2024 at 21:53):

Ohk, so there's https://gitlab.com/tad-lispy/roc-mode

view this post on Zulip Luke Boswell (Jun 03 2024 at 21:53):

@Tad Lispy

view this post on Zulip Ajai Nelson (Jun 21 2024 at 07:33):

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!

view this post on Zulip Tad Lispy (Jun 21 2024 at 16:00):

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.

view this post on Zulip Ajai Nelson (Jun 21 2024 at 17:11):

No worries at all @Tad Lispy!

view this post on Zulip Tad Lispy (Jun 23 2024 at 18:50):

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.

view this post on Zulip Ajai Nelson (Jun 23 2024 at 19:16):

Commit rights would be great @Tad Lispy!

view this post on Zulip Tad Lispy (Jun 24 2024 at 07:17):

Done @Ajai Nelson. Welcome aboard.

view this post on Zulip Tad Lispy (Jun 25 2024 at 18:00):

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.

view this post on Zulip Ajai Nelson (Jun 26 2024 at 04:29):

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!

view this post on Zulip Ajai Nelson (Aug 20 2024 at 19:02):

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!

view this post on Zulip Rick Hanson (Aug 22 2024 at 19:33):

@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: )

view this post on Zulip Ajai Nelson (Aug 22 2024 at 20:05):

I’m happy to hear that @Rick Hanson! Let me know if you have any issues or suggestions

view this post on Zulip Adam Bobrow (Aug 24 2024 at 06:43):

@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