How to write an emacs mode for a new language?

前端 未结 1 1975
滥情空心
滥情空心 2020-12-07 14:53

I would like to write an Emacs major mode for a 4GL. Can someone show me a tutorial? As far as I googled I was able to find only this broken:

link http://two-

相关标签:
1条回答
  • 2020-12-07 15:26

    If you're lazy, one easy way is to extend generic-mode to know about your new language:

    http://emacswiki.org/emacs/GenericMode

    I do this a lot for config files for applications that I work with a lot to get decent syntax highlighting. Here's one I did for the asterisk PBX a long time ago as an example.

    0 讨论(0)
提交回复
热议问题