From 6b31035d7861a7cf8b3de74c4ab264abbca70c43 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Wed, 28 Nov 2012 16:08:37 +0900 Subject: [PATCH] do not load url.el immediately --- emacs.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/emacs.el b/emacs.el index c3a2bb1..25bf5e4 100644 --- a/emacs.el +++ b/emacs.el @@ -39,8 +39,6 @@ changing.") ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; download library from web -(require 'url) - (defun fetch-library (url &optional byte-compile-p force-download-p) "If library does not exist, download it from URL and locate it in \"~/emacs.d/lisp/\". Return nil if library unfound and failed to download, @@ -52,6 +50,7 @@ otherwise the path where the library installed." (if (or force-download-p (not locate-p)) (progn (condition-case nil (progn (message "downloading %s..." url) + (require 'url) (url-copy-file url lpath t)