Limit certain modes to prog-mode