Use major mode locally key binds instead of the global one. And move
some major mode config code into file support.