国内doom emacs 包的源如何配置呢?

刚回国了。

我记得spacemacs是有改melpa, org的源的,不知道doom emacs有没有这样类似的配置?

谢谢!

没有

我只知道这样

只适用于第一次 straight-use-package , 不适用于 pull

1 个赞

求助, 用了之后回显:

Installing packages…

> Updating recipe repos...

  > In repository "melpa", remote "origin" has URL

    "https://gitclone.com/github.com/melpa/melpa.git"

  but recipe specifies a URL of

    "https://github.com/melpa/melpa.git"

       1) Abort
       2) Rename remote "origin" to "origin-1", re-create "origin" with correct URL, and fetch
       3) Rename remote "origin" manually, re-create it with correct URL, and fetch
       4) Delete remote "origin", re-create it with correct URL, and fetch (Recommended)
       5) Delete remote "origin", re-create it with manual URL

这个怎么处理? 每个选项都试了一遍, 不顶用?

doom似乎都是直接从git上搬的,安装慢也没啥办法…


单看英文似乎选4?

是的,绝大部分都从 github.com/emacs-straight下的库下载,慢的要死要死的……

1 个赞

用 cask 作为包管理器,然后用 package! 的 :local-repo 定位 cask 安装包的位置

三百多个package!都要这么指定太累了,而且cask下载guthub库照样慢。

这个是在第一次 straight-use-package 时能够使用,想要 pull 时使用得修改一下 straight.el 里的代码,( 我不使用 doom ,不清楚 doom 对 straight 有什么特殊的修改)

而且 push 什么的都用不了,只能在第一次加速

本地配置socks5代理,然后配置proxychains,使用doom时运行proxychains -q doom xxx

doomemacs安装新包的方式真的不适合国内。 最近不小心搞坏了,需要重新安装。 什么https.proxy hosts还有insteadOf都试了,死活安装不上。 特别是这几天日子比较特殊。也不知能不能改成国内源更新。

推荐proxy-ns

感谢您的建议,以后我试试。

我用的windows系统,在linux下,我用proxychain或者anyconnect都可以正常更新的。

我刚发现doom有个新特性了。

doom upgrade does not work. · Issue #6375 · doomemacs/doomemacs (github.com)

Because doom commit a version to ignore proxy in .gitconfig file. The old version is working well. Need config “DOOMGITCONFIG=C:\Users\xxxx.gitconfig” in env file. add (doom-load-envvars-file “~/.doom.d/myenv”) in doom/init.el to load.

我在windows下设置的https.proxy和insteadOf都没法直接作用给doom,现在更新了env之后,就可以了。