My .emacs file opens itself so that I can always switch buffers to quickly make changes. I do this with:

;; $HOME/.emacs
(find-file "~/.emacs")

I start emacs with emacs --daemon and open files from the command line with emacsclient -c <FILE_NAME>.

However, when I open those files, my (already open) .emacs file will flash for about two seconds before opening the file I actually care about.

How can I remove the two second "flash of my .emacs file" and instead make emacsclient immediately show the file I care about?

  • Do you see the same thing if you start Emacs using emacs -Q (no init file)? If not, bisect your init file to find the culprit. – Drew Oct 8 '19 at 21:29
  • Yep - a similar behavior seems to exist with emacs -q --daemon, then emacsclient tmp.txt. I get a flash of *scratch*, and after two seconds the screen switches to tmp.txt. – candrews Oct 8 '19 at 22:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.