Move some mode config to mode-mappings.el.