Experiencing a white flash launching Emacs?
There's a simple fix for this annoyance.
Introduction
I used to get this annoying flash whenever I opened an Emacs frame.
Thankfully I have found a simple workaround to prevent the blinding light from scorching my retina.
Adjusting the initial frame’s background colour
Add this to your early-init.el
:
(add-to-list 'initial-frame-alist '(background-color . "#1d1f21"))
If you use a dark theme with a different background colour then you can change the colour to whatever the theme’s background is. You could even extract the value and put it into a variable and make it dynamic (not sure how you would do that, but you’re a smart cookie right?).
If you use use Doom Emacs. like I
do, then you can add it to the very top of your init.el
file and it will work
as intended.
Short article but hopefully its helpful!