If you use desktop-save-mode
, and have several hundred buffers saved, when you start emacs, emacs cycles through these buffers and shows each of them for a split second. Can this be prevented?
1 Answer
The variable desktop-restore-eager
can control this. This variable controls how many buffers to restore the moment you start emacs. The rest will be restored quietly when Emacs is idle.
So if you set if for some low number, say 10, when you start Emacs it will immediately load 10 of your saved buffers. This will be fast enough to avoid the flickering you notice. After that, the rest of the buffers will be reloaded in bits and pieces when Emacs is idle.
The problem you describe is likely a consequence of the default value of desktop-restore-eager
: t
. This setting reloads all buffers before Emacs does anything else, so you have to sit and watch it happen before you can do anything.
desktop-save-mode
, or are you doing something else? If you're usingdesktop-save-mode
, check out the variabledesktop-restore-eager
desktop-restore-eager
was exactly what I was looking for.