<feed xmlns='http://www.w3.org/2005/Atom'>
<title>dotemacs/tests/test-mail-config-mu4e-window.el, branch main</title>
<subtitle>My Emacs configuration
</subtitle>
<id>https://git.cjennings.net/dotemacs/atom?h=main</id>
<link rel='self' href='https://git.cjennings.net/dotemacs/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/dotemacs/'/>
<updated>2026-05-26T19:28:18+00:00</updated>
<entry>
<title>feat(mail): keep mu4e's main view from deleting the window split</title>
<updated>2026-05-26T19:28:18+00:00</updated>
<author>
<name>Craig Jennings</name>
<email>c@cjennings.net</email>
</author>
<published>2026-05-26T19:28:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/dotemacs/commit/?id=3acdb28ed69ce27aa3cd4086cfe9714fc1074431'/>
<id>urn:sha1:3acdb28ed69ce27aa3cd4086cfe9714fc1074431</id>
<content type='text'>
mu4e's main view displays with a display-buffer-full-frame action, which tears down every other window on launch, so opening mu4e from a split collapsed the layout. mu4e's own mu4e-display-buffer docstring points to display-buffer-alist as the supported override.

I added an entry routing the *mu4e-main* buffer to the current window (reuse a window already showing it first, then same-window), so launching mu4e in a split keeps the rest of the layout intact. It's registered eagerly rather than inside mu4e's deferred config so it applies on the first launch. Tests cover the entry registration and that the main buffer no longer collapses a split under mu4e's full-frame action.
</content>
</entry>
</feed>
