Emacs插件的升级

缘起

使用Hugo后发现,Hugo的更新很是频繁,不断有新的功能推出,发现其中有一个 page bundle 功能,但ox-hugo似乎需要更新后有更好的支持。list package后,发觉我的Emacs插件从来不没有升级过,也不知道怎么升级,查看了网上的说明,说是在 list package界面中,插件所在的行,直接按 U (大写U,表示升级这个插件),再按 X (表示excute),即可升级,但我按了 U 没有任何反应。

关于package的基本操作

首先查看插件: Alt+x list-packages

Install Packages This list is shown in package-menu-mode. In this mode, here’s the most useful keys:

【Enter】 (package-menu-describe-package) → Describe the package under cursor. 【i】 (package-menu-mark-install) → mark for installation. 【u】 (package-menu-mark-unmark) → unmark. 【d】 (package-menu-mark-delete) → mark for deletion (removal of a installed package). 【x】 (package-menu-execute) → for “execute” (start install/uninstall of marked items). 【r】 (package-menu-refresh) → refresh the list from server.

package的升级

Upgrade Packages To upgrade packages, just press 【U x】.

package-menu-mark-upgrades 【U】 → For any package that has a new version, the installed one will be marked “D” (for delete), and new one will be marked “I” (to install). package-menu-execute 【x】 → run the marked commands on packages.

WARNING: package upgrade is not reliable. It is better to upgrade one package at a time. First delete the package, then install the latest. 本文的大部分内容引用自ergoemacs.org,作者在最后写到,插件升级不靠谱,建议的升级操作:先删除插件,再安装完成升级。 我也是这么做的

参考:

http://ergoemacs.org/emacs/emacs%5Fpackage%5Fsystem.html

海上一民工

Related