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

Finding unreachable functions with deadcode

deadcode is a new command to help identify functions that cannot be called.

via The Go Blog December 12, 2023

Serializing restaurant tables in Haskell

Using Aeason, with and without generics. This article is part of a short series of articles about serialization with and without Reflection. In this instalment I'll explore some options for serializing JSON using Aeson. …

via ploeh blog December 11, 2023

Insights and questions from the original waterfall paper

The waterfall model is probably the most reviled methodology in software engineering. This methodology was first described in a 1970 paper by Dr. Winston Royce. This paper didn't call it waterfall, nor did it endorse the technique, and the paper contain…

via ntietz.com blog December 11, 2023

Generated by openring