1. 程式人生 > >windows 下配置 emacs 一直卡在 Contacting host: melpa.org:443

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

help -a ges 大神 ini 重啟 去掉 win git clone

最近想試試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就好了。

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