在选择完成框架(helm
或 ivy
)的初始 spacemacs
设置期间,默认情况下会安装软件包。在过去和现在,这些软件包之一中存在一个错误,删除了自动完成
功能。
我的问题是:如何缩小 spacemacs
中存在错误的软件包版本以便恢复此功能?我知道普通 emacs
也存在类似的问题,但我想确保我没有错过 spacemacs
中可能存在的任何细微差别。
最佳答案
克隆软件包存储库(软件包 URL 以 .git
结尾):
git clone https://github.com/<user>/<package-name>.git
检查到旧版本,在出现错误之前。 检查较旧的提交:
cd /path/to/cloned/package
git log
结帐:
git checkout <commit hash>
将较旧的软件包版本复制到本地 elpa
位置(package-directory
将在字符串中包含日期):
/bin/cp -f /path/to/cloned/package/* /path/to/.emacs.d/elpa/<package-directory>/
删除已编译的文件:
rm -f path/to/.emacs.d/elpa/<package-directory>/*.elc
打开 emacs,检查是否存在软件包错误:
emacs
关于emacs - spacemacs 中的回滚包版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42743518/