Setup magit mode. Only change is to make magit not open up a new window.