package-archives
(("marmalade" . "http://marmalade-repo.org/packages/") ("gnu" . "http://elpa.gnu.org/packages/") ("melpa" . "http://melpa.milkbox.net/packages/"))
setq package-archives '(("melpa" . "http://melpa.milkbox.net/packages/"))
(("melpa" . "http://melpa.milkbox.net/packages/"))
但是当我再次评估package-archives
时,我得到原始值:
package-archives
(("marmalade" . "http://marmalade-repo.org/packages/") ("gnu" . "http://elpa.gnu.org/packages/") ("melpa" . "http://melpa.milkbox.net/packages/"))
答案 0 :(得分:0)
我只需要添加parens:
(setq package-archives '(("melpa" . "http://melpa.milkbox.net/packages/")))