如何在Emacs 24中保存所有已安装软件包的列表? [英] How to save a list of all the installed packages in Emacs 24?
问题描述
我已经从包管理器安装了很多包,我想在另一台机器上使用我的设置。
我不想携带已安装的软件包,也不想手动创建列表。
将所有安装的软件包保存到prelude-package.el或任何其他文件中的方法是什么?当我将此配置与我的其他机器一起使用时,它们会自动安装在那里?
您可以从变量 package-activated-list中获取当前安装的软件包列表(不包括内置软件包)
。要在启动时自动安装,请参阅以下问题:如何通过指定包名称列表来自动安装emacs包?
更具体地说,如果你执行 Ch v package -activated-list ,复制显示的值,并将其作为 prelude-packages
的值插入,emacs将自动确保这些包在启动时安装。
I am using prelude as a base Emacs configuration. I have installed lots of packages from the package manager, and I want to use my settings on another machine.
I don't want to carry the installed packages and also I don't want to create a list manually.
What is the way of saving a list all the installed packages into prelude-package.el or any other file so that when I take this configuration to my other machine, they automatically get installed there on first use?
You can get a list of currently installed packages (excluding built in packages) from the variable package-activated-list
. To automatically install them on startup, see this question: how to automatically install emacs packages by specifying a list of package names?
More specifically, if you do C-h v package-activated-list, copy the value shown, and insert it as the value of prelude-packages
, emacs will automatically ensure those packages are installed on start up.
这篇关于如何在Emacs 24中保存所有已安装软件包的列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!