[Top][All Lists]

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

Re: How to Reduce Emacs Load Time

From: Nikolaj Schumacher
Subject: Re: How to Reduce Emacs Load Time
Date: Sun, 31 Aug 2008 14:35:40 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2.50 (darwin)

Ivan Kanis <address@hidden> wrote:

> I use late binding, I load the package when I start using it. For
> example for ido mode:
> (defun ivan-ido-file ()
>   "Find file, late bind ido."
>   (interactive)
>   (ivan-ido-late-bind)
>   (ido-find-file))
> (defun ivan-ido-late-bind ()
>   (unless ido-mode
>     (require 'uniquify)
>     (ido-mode 'both)))
> I then bind C-x C-f to ivan-ido-file, it will load ido the first time
> I need it. This makes my emacs faster to start.

Emacs already provides a mechanism for that.  I think you can get rid of
most of these custom commands simply with these lines:

(eval-after-load "ido"
  '(progn (unless ido-mode
            (require 'uniquify)
            (ido-mode 'both))))

Nikolaj Schumacher

reply via email to

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