windows 下配置 emacs 一直卡在 Contacting host: melpa.org:443


最近想试试emacs,听人说初学者要追随大神的脚步,直接拿他们的配置来用,于是从git上找了一个git clone -o redemacs https://github.com/redguardtoo/emacs.d.git ./.emacs.d。然后重启emacs,结果一直卡在 Contacting host: melpa.org:443。于是想换个镜像,但是在 .emacs.d/init.el 中,没有找到 melpa等的package源配置,后来终于在.emacs.d/lisp/init-elpa.el 里,找到了。 (setq package-archives '(;; uncomment below line if you need use GNU ELPA ;; ("gnu" . "https://elpa.gnu.org/packages/") ("localelpa" . "~/.emacs.d/localelpa/") ;; ;; {{ 163 repository: ;; ("melpa" . "https://mirrors.163.com/elpa/melpa/") ;; ("melpa-stable" . "https://mirrors.163.com/elpa/melpa-stable/") ;; ;; }} ;; ;; {{ tsinghua repository (more stable than 163, recommended) ;; ;;See https://mirror.tuna.tsinghua.edu.cn/help/elpa/ on usage: ;; ;; ("gnu" . "http://mirrors.tuna.tsinghua.edu.cn/elpa/gnu/") ("melpa" . "http://mirrors.tuna.tsinghua.edu.cn/elpa/melpa/") ("melpa-stable" . "http://mirrors.tuna.tsinghua.edu.cn/elpa/melpa-stable/") ;; ;; ("org" . "http://mirrors.tuna.tsinghua.edu.cn/elpa/org/") ;; }} ;;("melpa" . "https://melpa.org/packages/") ;;("melpa-stable" . "https://stable.melpa.org/packages/") )) 把最后两个注释掉,上面的清华的两个注释去掉。重启emacs就好了。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM