[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to Reduce Emacs Load Time

From: David
Subject: Re: How to Reduce Emacs Load Time
Date: Sun, 31 Aug 2008 21:10:45 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.2.90 (gnu/linux)

formido <address@hidden> writes:
> Thanks very much for that. In this case, by inspection I can tell
> CEDET is a major culprit.

Strange. I just benchmarked my CEDET init function and it takes about
half a second.

> Mind telling me how you load CEDET? I just used instruction they gave--
> you can see above what my *messages* looks like at init.

Yes, CEDET sets up lots of stuff, but not much is actually loaded, so it
shouldn't take much time. It consists of several packages, which were in
fact separated in earlier releases, but are now bundled to make
installation easier. This is why you see so many messages about
different packages being set up. Don't worry too much about it. :-)

I would strongly advise to use CEDET from CVS. There have been huge
improvements since 1.0pre4, and Eric (Ludlam) is currently preparing a
1.0pre5 release based on the current CVS code.

You can check out the CVS version from sourceforge:

cvs -z3 -d:pserver:address@hidden:/cvsroot/cedet co -P cedet

I usually defer loading CEDET until I load up a source file. You can use
something like this:

(defun my-init-cedet ()
  (unless (fboundp 'cedet-version)
    (load-file (expand-file-name "~/cedet/common/cedet.el"))
    ;; stickyfunc irritates me, so deactivate it
    (global-semantic-stickyfunc-mode -1)

Then use e.g.

(eval-after-load "cc-mode"

to load CEDET when CC-mode gets loaded. You can add this for several
other modes if you want to. You can also call this init manually.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]