Some of the apps (w3m, elfeed, mu4e, to name a few) when quit leave unused frame so the other buffer shows up in their place. Over time these redundant frames pile up, so we have to delete them.
I look for a way to automate it, by deleting these frames if there is only one window inside with an app that just quit. I want to use it for buffers used by w3m
, mu4e
, elfeed
, erc
.
If we just close the frame, the app will still be lurking around. The next time I will need it and call the command it may create another instance instead of reusing existing one. That's why it would be better to delete the frame on app quit rather than keeping it alive without active window.
It would be perfect to configure it selectively using display-buffer-alist
if that's possible.