tags:

views:

1724

answers:

4

I would like to write an emacs major mode for a 4GL. Can some one show me a tutorial. As far as i googled i was able to find only this broken link http://two-wugs.net/emacs/mode-tutorial.html

+6  A: 

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.

Cristian
+14  A: 

Complete tutorial on EmacsWiki "Mode Tutorial"

An Emacs language mode creation tutorial

John
The site the link points to is empty. I guess http://www.emacswiki.org/emacs/ModeTutorial is what is referred to.
Maik Beckmann
+5  A: 

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

http://www.emacswiki.org/cgi-bin/wiki/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.

bmdhacks
A: 

Prabu, did you ever finish that mode? I found Harry Bochner's from 1991 but it doesn't contain syntax highlighting.