Tutorial: Writing a new Emacs mode

http://two-wugs.net/emacs/mode-tutorial.html