derive typscript-mode from prog-mode

prog-mode is useful because you can add hooks to prog-mode-hook