spacemacs

时间:2017-03-12 03:47:00

标签: emacs version packages rollback spacemacs

在初始spacemacs设置中,选择了完成框架(helmivy),默认情况下会安装软件包。在过去和现在,其中一个包中存在一个错误,删除了auto-completion功能。

我的问题是:如何缩减spacemacs中的错误包版本以便此功能返回?我知道香草emacs存在类似的问题,但我想确保我没有错过spacemacs中可能存在的任何细微差别。

1 个答案:

答案 0 :(得分:1)

克隆包回购(包网址以.git结尾):

git clone https://github.com/<user>/<package-name>.git

在bug之前签出旧版本。 检查旧提交:

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