Use prog-mode-hook instead of c-mode-common-hook