Tidy up some programming mode settings.