[emacs] add magit mode support and keymap