I'm having to use Emacs on a few odd machines lately, and I've encountered the same annoying issue on all of them. Note that I'm using emacs-nox or the equivalent on every system. When I open a file from the command line, Emacs consistently hangs on the scratch buffer for 4-6 seconds before proceeding to the file. This occurs even when running Emacs as a daemon and opening files using emacsclient; the only way I can avoid it is to suspend Emacs with C-z, open it again with %emacs, and then C-x C-f for the file I want. The problem crops up on my Android phone (Termux), on Bash for Windows, and over SSH on two servers, running Arch and Ubuntu. I've tried a few solutions, some my own and others from reddit:
- Deleting my .emacs and .emacs.d
- Adding my hostname to /etc/hosts
- Removing various hooks via .emacs
- Compiling from source
So far, no dice. If anyone knows how to fix this, I'll love you forever; I'm almost at the point of switching to vim - almost.