Make it work in older Emacsen without prog-mode.