소스 검색

little improvement of lazy-load-eval

pull/1/head
10sr 10 년 전
부모
커밋
707d0ab2ae
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. +4
    -2
      emacs.el

+ 4
- 2
emacs.el 파일 보기

@@ -53,7 +53,8 @@ If FORCE-DOWNLOAD-P it t ignore exisiting library and always download."
(locate-library lib)))

(defun download-file (url path &optional ok-if-already-exists)
"Download file from URL and output to PATH."
"Download file from URL and output to PATH.
IF OK-IF-ALREADY-EXISTS is true force download."
(or
(let ((curl (executable-find "curl")))
(when curl
@@ -140,7 +141,8 @@ found, otherwise returns nil."
(eval-after-load ,feature
(quote (progn
,@body)))
,libpath))))
(locate-library ,libname)))))

(put 'lazy-load-eval 'lisp-indent-function 2)

(when (lazy-load-eval 'tetris nil


불러오는 중...
취소
저장