Magit opening on a random window

If everything goes south and I find a better replacement for GNU Emacs, Magit1 would definitely be the hardest to replace. It is deeply ingrained in my daily workflow and I can’t imagine using Git with anything else.

Having said that, I always hated how it would open magit-status randomly. Sometimes on the top, sometimes splitting your screen in half. I’m sure there’s a reason and a rationale behind that, but I could never anticipate where it would pop-up. It’s also funny that I have never considered fixing this problem, I don’t know, I just lived with it… Until I saw a Hacker News comment on how to make it full screen.

(use-package magit
  :config
  ;; makes magit fullscreen and restore the windows when closing
  (setq magit-display-buffer-function 'magit-display-buffer-fullframe-status-topleft-v1
        magit-bury-buffer-function 'magit-restore-window-configuration))

As the comment says, this makes all Magit buffers open in full screen and then restore all your windows after closing it.


  1. Consider donating to it on Open Collective↩︎


Articles from blogs I follow around the net

The four tenets of SOA revisited

Twenty years after. In the January 2004 issue of MSDN Magazine you can find an article by Don Box titled A Guide to Developing and Running Connected Systems with Indigo. Buried within the (now dated) discussion of the technology…

via ploeh blog March 4, 2024

Building a demo of the Bleichenbacher RSA attack in Rust

Recently while reading Real-World Cryptography, I got nerd sniped1 by the mention of Bleichenbacher's attack on RSA. This is cool, how does it work? I had to understand, and to understand something, I usually have to build it. Well, friends, that is what…

via ntietz.com blog March 4, 2024

How to unbreak Dolphin on SteamOS after the QT6 update

A recent update to Dolphin made it switch to QT6. This makes it crash with this error or something like it: dolphin-emu: symbol lookup error: dolphin-emu: undefined symbol: _Zls6QDebugRK11QDockWidget, version Qt_6 This is fix…

via Xe Iaso's blog March 3, 2024

Generated by openring