Store default codemirror mode in only 1 place

All is in title.
The default_mode value was not used in any other places.