doom-emacs安装evil失败的问题

安装doom-emacs无法下载evil,然后手动从github上下载后放到.local/straight/repos/ 目录下,安装通过了,但是doom compile的时候报错。折腾两天了,上头打了,大家有遇到过这个问题吗吗?

错误信息如下: In toplevel form: …/workspaces/config.el:42:15:Warning: variable ‘_’ not left unused ✓ Compiled modules/ui/workspaces/config.el

Cannot load evil: (file-missing “Cannot open load file” “No such file or directory” “evil-vars”)

In toplevel form: …/…/editor/evil/config.el:57:16:Error: Cannot open load file: No such file or directory, evil-vars x Failed to compile modules/editor/evil/config.el ✓ Compiled modules/editor/evil/+everywhere.el x There were breaking errors.

Reverting changes… x There was an unexpected error: Type: doom-error Message: Error in Doom Emacs core Data: byte-compile (void-function evil-define-key*)

Run the command again with the -d (or --debug) switch to enable debug mode and (hopefully) generate a backtrace from this error:

doom -d compile

If you file a bug report, please include it!

doom 不是本来就内置了 evil 了吗,不用手动安装。

其次,doom 是用 straight 进行包管理的,你如果要安装也不能手动下载到 repo 文件夹里,而是要用代码实现,具体方法建议看 doom github 的说明。

你都可以从 github 上手动下载 evil , 不应该无法使用 doom-emacs 中的包管理器下载 evil, 删除你自己下载的 evil, 重新用 doom-emacs 自带的包管理器下载 evil 吧! 因为 doom-emacs 会锁版本,而不是一直使用github上最新的版本。

如果doom 安装,它会一直这样,直到失败 截屏2020-03-01下午6.27.07

让 git 走代理

手动clone到.emacs.d/.local/straight/repos目录。

我就是这样做的,报的上面的错,是不是还要改哪里的配置

把build里面的evil也删掉

网络问题,找个网速流畅的时间点更新。实在等不及就挂代理。

或者手机共享热点,不挂代理也容易成功。

挂代理是正解,不然以后用也麻烦。

确实网络有问题,我设置了git加速重新下下来了,这个问题好像也可以通过在build/evil中建立软连接解决

每当我更新doom的时候,都会弄个vpn, 就会很顺畅。