TL;DR: 怎样让这个 Emacs 配置文件(GitHub - jwiegley/dot-emacs: My .emacs.el file and other personal Emacs goodies)正常运行起来?
John Wiegley 是 Emacs 的核心维护者之一,也是著名的 Emacs 包管理插件 use-package
的作者。个人觉得这种大牛的配置是非常值得学习的。John Wiegley 在 GitHub 上分享了 他的 Emacs 配置 (GitHub - jwiegley/dot-emacs: My .emacs.el file and other personal Emacs goodies), 但是我一直没办法 Clone 他的配置。
目前我在一个刚刚安装好的Ubuntu虚拟机中做过以下的尝试:
cd ~
mkdir .emacs.d && cd ~/.emacs.d
git clone --recursive https://github.com/jwiegley/dot-emacs.git .
但是会提示下面的错误:
fatal: No url found for submodule path 'lib/emacs-request/doc/eldomain' in .gitmodules
如果忽略这个错误,然后在 ~/.emacs.d
目录运行
make all
又会出现下面的错误
In toplevel form:
lisp/puppet-ext.el:31:1:Error: Cannot open load file: No such file or directory, puppet-mode
make: *** [Makefile:38: lisp/puppet-ext.elc] Error 1
所以我想问题可能在于git submodule
并于不能完整地 clone 这个他的配置。John Wiegley 在 Readme 中特意指出他用的是 git subtree
而不是 git submodule
,可是网上关于 git subtree
clone repo 的方法写得不是很明了, 比如 (Procedure for cloning Git repos that use subtree - Stack Overflow),我看了之后依然不是很清楚怎么用 git subtree
.
希望道友帮忙试一下,给一个clone的步骤,让大牛的配置运行起来,多谢!