Emacs Melpa匹配不到pythone-mode

执行以下命令在刷新安装源后进行安装时提示匹配不到python-mode:

1
2
M-x package-refresh-contents
M-x package-install RET python-mode

这是因为GNU Emacs未包含Melpa源,为了保障效率可以切换至国内镜像源。在 ~/.emacs中添加以下配置:

1
2
3
4
(setq package-archives '(("gnu"    . "http://mirrors.tuna.tsinghua.edu.cn/elpa/gnu/")
("nongnu" . "http://mirrors.tuna.tsinghua.edu.cn/elpa/nongnu/")
("melpa" . "http://mirrors.tuna.tsinghua.edu.cn/elpa/melpa/")))
(package-initialize) ;; You might already have this line

镜像使用参考网址:ELPA 镜像使用帮助