Handle lack of prog-mode in Emacs < 24