Inexperienced programmer here - When I open Emacs (24.5) on Mac Mavericks 10.9, I am getting a delay between the Emacs GUI opening and the init file being loaded. There is a white screen, which appears to do nothing for ~7 seconds.
Could this be a result of something in my init
file (which otherwise loads without error), or must it originate from something in my PATH
or .bash_profile
?
I have an alias set to open emacs from the Terminal:
alias="open /Path/To/Emacs-x86_64-10_9"
Any other ideas what this might be our how I can debug the pause?
EDIT1
Here is the output of etc/hosts
, @phils having pointed out it may be the cause.
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
#127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
emacs -q
to prevent it from processing that file. Otherwise, is this the problem? – phils Jan 4 '16 at 8:43/etc/hosts
file, hoping it means something to you and others. – n1k31t4 Jan 4 '16 at 8:55-q
option: open your terminal app (Terminal.app) and enteremacs -q
at the prompt. Does this make things load quickly? – elethan Jan 4 '16 at 12:55-q
flag is invalid. I have done this before though so it must be something to do with the alias I mentioned, or possibly a problem with my $PATH? Even opening a file usingopen file.txt -a /path_to_emacs -q
is returning the same error. – n1k31t4 Jan 4 '16 at 13:16-Q
combines a few other options, but lower-case-q
is equivalent to--no-init-file
and doesn't prevent any other start-up activities, so this does look like an init file issue. SeeC-h i g (emacs) Initial Options
for details on the available command-line options. – phils Jan 4 '16 at 20:02