अब मैं एमईएलपीए और मार्मलाडे के माध्यम से जितना कर सकता हूं उतना स्थापित कर रहा हूं, और मैं गिट का उपयोग करके अपने ~/.emacs.d का प्रबंधन करता हूं। हालांकि, मुझे गिट अनदेखा * .elc फाइलें हैं।मैं स्वचालित रूप से (पुनः) ईएलपीए संकुल कैसे संकलित करूं?
इसका मतलब है कि जब मैं एक सिस्टम पर एक पैकेज स्थापित करता हूं और फिर किसी अन्य सिस्टम का उपयोग करना शुरू करता हूं, तो git pull
केवल मुझे * .el फ़ाइलें देता है। इन फ़ाइलों का उपयोग अक्सर * .elc का उपयोग करने से धीमा होता है।
मैं ~/.emacs.d/init.el के लिए निम्न जोड़ने का प्रयास:
;; 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 के द्वारा किया के बराबर नहीं है। उदाहरण के लिए, अगर मैं Emacs-eclim स्थापित करते हैं, package.el संकलन नहीं है Emacs-eclim/कंपनी-Emacs-eclim.el, और मैं निम्नलिखित त्रुटि मिलती है: मैं Emacs byte- कैसे कर सकता हूँ
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'
पैकेज.ल के रूप में केवल वही फाइल संकलित करें?
धन्यवाद, मैं पैलेट के बारे में पता नहीं था। हालांकि, मैं वास्तव में अपने .emacs.d को स्वयं निहित होने के लिए पसंद करूंगा - मुझे अतीत में दुःख हुआ है, शायद ही कभी अपडेट की गई elisp फ़ाइलें उपलब्ध नहीं हैं जहां मैंने मूल रूप से उन्हें डाउनलोड किया था। –