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?
(setq magit-status-buffer-switch-function 'switch-to-buffer)
or via customize:
M-x customize-variable
RET magit-status-buffer-switch-function
RET
For newer versions of Magit you can use this sanctioned snippet:
(setq magit-display-buffer-function #'magit-display-buffer-fullframe-status-v1)
I combine it with this to get a zen-like full window Git status after switching projects:
(setq projectile-switch-project-action 'magit-status)
Here is another way to achieve this:
(add-to-list 'same-window-regexps "\*magit: .*\*")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With