Only enable linum-mode in text-mode and prog-mode.