9

我正在运行通过自制软件安装的 emacs 24.5。由于某些奇怪的原因,我的 emacs 卡在联系主机上:melpa.org:80

我什至尝试重新安装 emacs(也删除了 .emacs.d 文件夹)而且我能够通过终端 ping url melpa.org。

有想法该怎么解决这个吗。

4

1 回答 1

1

您可以尝试切换到 HTTPS 吗?我有

(setq package-archives '(("org" . "http://orgmode.org/elpa/")
                         ("melpa" . "https://melpa.org/packages/")
                         ("gnu" . "https://elpa.gnu.org/packages/")))

;; from https://glyph.twistedmatrix.com/2015/11/editor-malware.html
;; needs "brew install gnutls" and "pip install certifi", perhaps with sudo
(let ((trustfile
       (replace-regexp-in-string
        "\\\\" "/"
        (replace-regexp-in-string
         "\n" ""
         (shell-command-to-string "python -m certifi")))))
  (setq tls-program
        (list
         (format "/usr/local/bin/gnutls-cli --insecure --x509cafile %s -p %%p %%h"
                 trustfile)))
  (setq gnutls-verify-error t))
于 2017-01-03T14:20:47.533 回答