doom emacs 用户的福音

由于 doom emacs 用了 straight.el, 不止 elisp 插件,连 elpa 等插件源都是从 github 下载的,所以 doom sync or upgrade 的速度非常感人, 多亏淘宝搞了个代理,大大的福音:

git config --global url.https://github.com.cnpmjs.org/.insteadof https://github.com/

一下子爽爆了!

27 个赞

不如改成 github 用户的福音更好?

主要是 doom emacs 太重度使用 github 了,其它场合没这么频繁、密集的下载 github 东西,而且是个编辑器,下载了一半用不了,太抓狂了!

当然,这个代理是通用的😄️

straight-vc-git-default-clone-depth设置为1,感觉还可以

doom emacs clone的已经是depth=1了。

太赞了!浏览github上的repo都方便了很多!

3 个赞

所以这是个 github 的淘宝镜像

https://github.com.cnpmjs.org/evil-huawei/evil-huawei

感觉还是梯子快啊 :face_with_raised_eyebrow:

可能是这个库访问的人少,没缓存住。

看了下,好可怕,国产手机华为可以算最好了吧😓

第一反应是 evil 的一个我不知道的插件。。 :upside_down_face:

1 个赞

修改了以后一直报这个…

不太熟悉这个,我还是挂代理使用doom吧。不过你分享的这个方法确实很有效,我更新其他的仓库都可以用

帖子内容是不错的,但是请把真的内容(github的taobao镜像)写进标题,而不是让大家猜吧

3 个赞

可是,为什么不用代理呢?代理不该是想要在互联网看到优质内容所必须的吗

代理其实是必备技能吧,不然只能对着墙内的百度、CSDN,人都要疯掉

我重装 doom emacs 也遇到这个错了,需要给 straight.el 打个补丁,我给 straight.el 提个 PR

.emacs.d/.local/straight/repos/straight.el

diff --git a/straight.el b/straight.el
index 490997a..7dbd48e 100644
--- a/straight.el
+++ b/straight.el
@@ -1881,7 +1881,7 @@ necessarily need to match DESIRED-URL; it just has to satisfy
   (ignore
    (if-let ((actual-url (condition-case nil
                             (straight--get-call
-                             "git" "remote" "get-url" remote)
+                             "git" "config" "--get" (format "remote.%s.url" remote))
                           (error nil))))
        (if (straight-vc-git--urls-compatible-p
             actual-url desired-url)
2 个赞

请分享其它「可靠」的「公共」代理。。。

google it

443 你们的对话给我的感觉是这样的(逃)

2 个赞

但我即使我开了代理, github仍然很慢…

因为我连代理很慢.

dogedoge也还挺好的…