Change current line highlighting so that highlighting is only enabled in certain modes.