Yesterday, I :q
'd Vim to try Emacs for a while. I've started using Elisp (which is a hundred times better than VimScript), but even when I first installed it (via yum
), and had changed nothing, it took about 30 seconds to start, and still does (both GUI and -nw
).
I checked the *Messages*
buffer:
Loading /usr/share/emacs/site-lisp/site-start.d/desktop-entry-mode-init.el (source)...done
Loading /usr/share/emacs/site-lisp/site-start.d/rpmdev-init.el (source)...done
The files seem to be specific to the RPM package I installed. I tried changing their names, yet there was no difference. It still takes 30 seconds.
I've solved it partially by never exiting emacs (I only suspend it) and trying to do everything in it, but it would be nice to occasionally open two Emacs's, especially since I have a tendency to use my terminal emulator's split function rather than something like tmux
.
I realized that Emacs would load slower than Vim, but this seems ridiculous for a fresh install. Has anybody got any idea what's going on?
Thanks!
emacs -d
when you log in and runemacsclient
to edit a file). But 30s startup time is not normal; you have a package doing something weird. Doesemacs -q
load quickly? If not, looking at the Messages buffer, which init file is taking a long time? Where did you get Emacs from (which distribution's package), and where does the slow init file come from?emacs -q
is not faster. Removing both init files doesn't solve it. I installed it usingyum install emacs
, simply. It's calledemacs.x86_64
,1:24.3-11.fc19
according toyum
.emacs -Q
faster? (-q
doesn't load your personal init file,-Q
doesn't load the system init file either.) If it is (and I suspect it is), one of the system packages is the culprit. If not, this calls for a bigger gun. Runstrace -tt -o emacs.strace emacs -q -nw
and post the trace. (This can be useful even if it's a system package that's pausing so long.)emacs -Q
starts up under 0.05 seconds. "My"emacs
fully configured starts up under 3 seconds.dhclient em1
manually before I get access to the internet. Today, though, I started Emacs before, and it loaded really quickly, in a matter of seconds. Some time after I ran the command, I tried launching Emacs again and it was slow again. I'm not 100% sure that that's the cause, but it seems so. I'll reboot and try again.