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 04 '16 at 08:43/etc/hosts
file, hoping it means something to you and others. – n1k31t4 Jan 04 '16 at 08:55-q
option: open your terminal app (Terminal.app) and enteremacs -q
at the prompt. Does this make things load quickly? – elethan Jan 04 '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 04 '16 at 13:16-q
isn't working points more towards a system problem rather than an init-file issue. I am, however, stumped! – n1k31t4 Jan 04 '16 at 14:35-q
flag and it opens quickly as expected. So the problem may be in the init file - but does this mean it must be there? It loads without error though, so not sure what the issue could be - does the-q
flag prevent anything else during startup, aoart from the init file being read? – n1k31t4 Jan 04 '16 at 15:04-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 04 '16 at 20:02pdftools
every time Emacs started. I must have inadvertently uncommented those lines out at some point. – n1k31t4 Jan 08 '16 at 08:32