reddit / emacs

Is there anyway to close the minimap when the last buffer is closed with "C-x 0"? It leaves my editor in a bad state. (In fact, my desire would be for emacs to treat the minimap _not_ as a buffer so that I _can't_ close the last buffer). Any ideas?

UtensilUtilizer · 2022-12-05 00:37
MitchellMarquez42 · 2022-12-05 02:22
I have a key bound to `'minimap-kill` and always hit it before closing the last window.
_viz_ · 2022-12-05 06:57
You are looking for atomic windows which treat a group of windows as a single one. In your case, it would complain if you typed C-x 0. Unfortunately, not a lot packages behave super nicely with them (especially org) so things can get annoying and advice-y.
weineng96 · 2022-12-10 20:32
Will the following work: binding C-x 0 to a function that closes a minimap if it exist, then kill buffer