Fixed some minor bugs in the programming mode specifications.
Fixed bug in lisp mode hooks.