Fixed magit rebase mode

copied from https://github.com/philc/emacs-config