如何安裝比如transient from the latest github啊?
只要你装的包在 load-path 里比较靠前就会被首先加载,也就相当于 override 了。
- 装 melpa 里的 transient(一日一更新)
- 可以
M-x package-vc-install - 也可以自己 git clone 然后配置 load-path(use-package 里一行 :load-path 的事)
- 也可以换 straight.el, elpaca, el-get 之类的包管理器(相当于自动化程度更高的方法3)
1 个赞
如果不必须 Github 的最新版,只是要相对较新的版本,可以用
package-install-upgrade-built-in is a variable defined in ‘package.el’.
Its value is t
Original value was nil
Non-nil means that built-in packages can be upgraded via a package archive.
If disabled, then ‘package-install’ will raise an error when trying to
replace a built-in package with a (possibly newer) version from a
package archive.
This variable was introduced, or its default value was changed, in
version 29.1 of Emacs.
You can customize this variable.
1 个赞