[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 <expire-by-2008-09-05@kanis.fr> 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))))
regards,
Nikolaj Schumacher
Re: How to Reduce Emacs Load Time, Pascal J. Bourguignon, 2008/08/30
Re: How to Reduce Emacs Load Time, Ivan Kanis, 2008/08/31
- Re: How to Reduce Emacs Load Time,
Nikolaj Schumacher <=
- Message not available
Re: How to Reduce Emacs Load Time, David, 2008/08/31
Message not available