update default major mode