move major-mode configurations