Jimx- / zem

Extensible Emacs-like text editor with Guile
GNU General Public License v3.0
40 stars 2 forks source link

Supporting more languages #1

Open MTschannett opened 1 year ago

MTschannett commented 1 year ago

Hi, Just out of curiosity, how hard would it be support another language for example Scheme?

Jimx- commented 1 year ago

Hi, support for other languages can be added in a similar way to Emacs by defining a major mode for the language and some hook functions that perform language-specific configurations on the editor (like syntax patterns). You can find some examples under modules/zem/progmodes/. Generally speaking new languages can be added with just scheme scripts without recompiling the editor itself.

MTschannett commented 1 year ago

OK that sounds nice. I don't have expirience with Emacs major mode creation, but I definitly check this out.

Thank you