Update processing-mode and set processing-application-dir variable
Set subword-mode for prog-modes only