我在github上关注了他们的指南,并将以下内容放在我的init.el文件中:
(require 'package) ;; You might already have this line
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/"))
(when (< emacs-major-version 24)
;; For important compatibility libraries like cl-lib
(add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")))
(package-initialize) ;; You might already have this line
然而,当我去M-x package-list-packages时,我得到了一个Melpa未找到错误或者'缺少zlib库'错误,它只显示了gnu包。我也试过使用稳定的Melpa,但无济于事。我正在使用Windows 10并使用'init.el'文件设置指向目录的HOME变量。