actonlang / acton

The Acton Programming Language
https://www.acton-lang.org/
BSD 3-Clause "New" or "Revised" License
79 stars 7 forks source link

Add emacs-mode for acton #67

Open plajjan opened 3 years ago

plajjan commented 3 years ago

We should implement a language server for Acton and build an emacs-mode in Emacs that makes use of it.

Depends on #190

plajjan commented 3 years ago

I've never built an emacs mode before, though I have some experience in the domain through implementing syntax highlighting for vim. The more I read about doing it for Emacs, and the more I think about how I would do it for vim, the less it appeals to me. It is simply a lot of work, at least for it to turn into something good, and I don't want to spend that on something temporary. I mean, when I wrote this ticket, I knew the long term plan would be a language server for Acton but figured we could hack together something quickly. Meanwhile, I am using python-mode in Emacs and python stuff in vim when editing Acton programs. It works quite okay although it complains a bit about 'actor' keyword and similar. Producing a "quick hack" that works better than using python-mode won't be "quick". It will take serious effort. I've reconsidered and think we should spend that effort toward a language server and not towards a quick hack.

This issue is still valid in that we need to implement an emacs-mode for Acton, it's just that it should use LSP.

plajjan commented 3 years ago

Like, python-mode is ~30kLOC....