store default codemirror mode in only 1 place
catch if cm_config of other key undefined
Merge pull request #4064 from Carreau/default_mode

Store default codemirror mode in only 1 place