-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Emacs mode #128
Comments
I've been using the emacs code located at https://kamal.aboulhosn.org/lp/tey-emacs.html with the Teyjus implementation of lambda Prolog. Given its age and its explicit use of Teyjus, it would need to be updated for Elpi. |
Thanks for the reply! I tried that, but wasn't able to get it to work in a modern Emacs. Any tips? |
I use this code in Emacs 27.2 on a linux machine. I have the following lines in my .emacs file.
The .hc and .def extensions not relevant to either Teyjus or Elpi. I am not, however, an expert in .el file contents so I don't have any additional tips. Hope this helps. |
Interesting. On Emacs 26.1 I get |
Ah, interesting. I didn't find this before, but http://www.verycomputer.com/93_c0f1432ec52c4976_1.htm suggests just replacing Which of the differences between teyjus and elpi are relevant to an Emacs mode? |
Most of my code compiles and runs on both Teyjus and Elpi. On these programs, syntax highlighting to the teyjus.el code works fine for me. Features related to compiling code, error messages, etc (such as |
I'd be happy to merge a PR adding setup instructions for emacs (eg in the README). I am no Emacs user, so I would not be confident to write them right myself. |
For Emacs users like myself, it would be nice to have an Emacs mode for elpi. In fact, I haven't been able to find an Emacs mode for any kind of lambda-prolog that works on a modern Emacs. Does anyone know of such a thing? If not, I could probably throw together a bare-bones Emacs mode myself with a little time, perhaps by deriving from an ordinary prolog mode; would anyone be willing to help me get the syntax regexps and keyword lists correct?
The text was updated successfully, but these errors were encountered: