Jeremy. Zhao
Jeremy. Zhao

Reputation: 41

Why does Emacs always blink when start?

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?

screenshot of emacs startup

Upvotes: 2

Views: 1122

Answers (1)

jpkotta
jpkotta

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

Related Questions