all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to delay loading of packages (when eval-after-load does not apply)?
@ 2012-08-15 19:22 Sebastien Vauban
  2012-08-15 19:43 ` How to delay loading of packages (when eval-after-load does notapply)? Drew Adams
       [not found] ` <mailman.7059.1345059803.855.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 10+ messages in thread
From: Sebastien Vauban @ 2012-08-15 19:22 UTC (permalink / raw)
  To: help-gnu-emacs-mXXj517/zsQ

Hello,

In the sake of trying to load my .emacs in less than 20-25 seconds (the
current situation), I'm trying to optimize when things must be loaded.

For example, to save time, I want the fuzzy package to be loaded when it will
be needed for the first time.

The only way I found was:

#+begin_src emacs-lisp
   ;; fuzzy matching utilities (a must-have)
   (when (locate-library "fuzzy")
     (eval-after-load "isearch"
       '(progn
          (require 'fuzzy)
          (turn-on-fuzzy-isearch))))
#+end_src

... but, as isearch must be loaded internally (where?) at startup, my
eval-after-load is useless in fact: fuzzy is loaded as well at startup time.

How could I say: load fuzzy when I will make a search for the first time?

Best regards,
  Seb

-- 
Sebastien Vauban


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-08-20 15:24 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-15 19:22 How to delay loading of packages (when eval-after-load does not apply)? Sebastien Vauban
2012-08-15 19:43 ` How to delay loading of packages (when eval-after-load does notapply)? Drew Adams
     [not found] ` <mailman.7059.1345059803.855.help-gnu-emacs@gnu.org>
2012-08-17 10:07   ` Sebastien Vauban
2012-08-17 10:31     ` Raffaele Ricciardi
2012-08-17 12:11       ` Sebastien Vauban
2012-08-17 12:20         ` Raffaele Ricciardi
2012-08-17 18:33           ` Sebastien Vauban
2012-08-20 12:40             ` Sebastien Vauban
2012-08-20 13:39               ` Raffaele Ricciardi
2012-08-20 15:24                 ` Sebastien Vauban

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.