저는 MELPA와 Marmalade를 통해 가능한 한 많이 설치하고 있습니다. ~/.emacs.d는 git을 사용하여 관리합니다. 그러나, 나는 * .elc 파일을 무시한다.ELPA 패키지를 어떻게 자동으로 (다시) 컴파일합니까?
즉, 하나의 시스템에 패키지를 설치 한 다음 다른 시스템을 사용하기 시작하면 git pull
은 * .el 파일 만 제공합니다. 이러한 파일을 사용하는 것은 종종 * .elc를 사용하는 것보다 느립니다.
;; load the packages we've installed. Note that package-install
;; byte-compiles the packages, but .elc is ignored by git so we force recompilation here
(byte-recompile-directory (expand-file-name "~/.emacs.d/elpa") 0)
(package-initialize)
불행하게도,이 package.el에 의해 수행 컴파일에 해당하지 않습니다. 내가 이맥스 - eclim을 설치하는 경우 예를 들어, package.el는 이맥스 - eclim/회사 이맥스 - eclim.el를 컴파일되지 않습니다, 나는 다음과 같은 오류 얻을 : 나는 이맥스 바이트 - 어떻게해야합니까
Leaving directory `/home/wilfred/.emacs.d/elpa'
Compiling file /home/wilfred/.emacs.d/elpa/emacs-eclim-20130310.1237/company-emacs-eclim.el at Mon Mar 11 15:40:01 2013
Entering directory `/home/wilfred/.emacs.d/elpa/emacs-eclim-20130310.1237/'
company-emacs-eclim.el:35:1:Error: Cannot open load file: eclim
Warning: reference to free variable `multiple-cursors-mode'
Warning: reference to free variable `mc--read-char'
Warning: assignment to free variable `mc--read-char'
Warning: reference to free variable `multiple-cursors-mode'
Warning: reference to free variable `mc--read-quoted-char'
Warning: assignment to free variable `mc--read-quoted-char'
Warning: reference to free variable `rectangular-region-mode'
Warning: reference to free variable `rectangular-region-mode'
을 package.el과 동일한 파일 만 컴파일 하시겠습니까?
감사합니다. 팔레트에 대해 알지 못했습니다. 그러나, 필자는 .emacs.d를 자체적으로 포함하고 싶습니다. 이전에 거의 다운로드하지 않은 elisp 파일을 더 이상 사용할 수 없어서 슬픔을 겪었습니다. –