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
2008-09-18 09:32:31
+14
A:
Complete tutorial on EmacsWiki "Mode Tutorial"
An Emacs language mode creation tutorial
John
2008-09-18 09:34:03
The site the link points to is empty. I guess http://www.emacswiki.org/emacs/ModeTutorial is what is referred to.
Maik Beckmann
2009-10-20 09:04:31
+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
2008-09-20 16:07:03