Reputation: 41
I find Emacs always blinks when it startup, My operation system is MacOS 10.14, I take a screenshot to show what I say, and slow the playback to 5%, then I find there is a screen draw first, but it's white fill color, after that it redraws as the config in .emacs file.
Could anybody tell me what's the mechanism of this and how to remove it?
Upvotes: 2
Views: 1122
Reputation: 9437
UPDATE: You can set most of these in early-init.el with Emacs 27+. That code gets executed before the GUI comes up.
Some Emacs config can happen before init.el
is loaded, for instance X resources and command line options. So you can start Emacs like
emacs -bg black
or edit your ~/.Xresources:
Emacs.Background: black
and update the xrdb:
xrdb -merge ~/.Xresources
If you go the X resources route, make sure something updates xrdb at start up/log in.
You can use named colors like in list-colors-display
or a hex color like #000000
.
Upvotes: 3