emacsmagit

How to open magit-status in full window


I am using Magit to work with git in emacs. I have bound magit-status to a key, but every time I hit the key it opens in a split in lower half of the window and i have to hit C-x 1 to get it into a full window. How can I make it open in a full window by default?


Solution

  • (setq magit-status-buffer-switch-function 'switch-to-buffer)
    

    or via customize:

    M-x customize-variable RET magit-status-buffer-switch-function RET