How to write an emacs mode for a new language?

纵饮孤独 提交于 2019-11-28 03:26:47
jfs

Complete tutorial on EmacsWiki "Mode Tutorial"

An Emacs language mode creation tutorial

bmdhacks

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.

There is a blog series on writing a new python-mode in emacs. It's not a tutorial but it may point you in the right direction.

Yet another small tutorial called How to Write a Emacs Major Mode for Syntax Coloring by Xah Lee.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!