如何更改默认安装包位置?
我想构建独立的emacs发行版。一些我可以放在网络文件夹或U盘上的东西,在安装了emacs本身的任意系统上解压,可以使用提供的设置,并且不会扰乱系统上的原始emacs设置。它就像是一个展示emacs能为我的伙伴们做什么的展示台。
我在init.el中重新定义了加载路径等,但未能自定义elpa工作位置。我在emacs自记录信息系统中搜索,没有找到有关软件包系统的元文件位置和安装的软件包路径的文档。显然,我不能带着默认值离开,而且我不知道要修改哪些变量或挂钩到设置。
发布于 2013-04-01 07:54:30
package-user-dir是您想要的变量。从文档中:
目录包目录是在package.el'. Its value is "~/.emacs.d/elpa" This variable is potentially risky when used as a file local variable. Documentation: Directory containing the user's Emacs Lisp packages. The directory name should be absolute. Apart from this directory, Emacs also looks for system-wide packages in包目录列表中定义的一个变量。
(我使用M-x apropos-variable和搜索‘package’找到了这个)。
https://stackoverflow.com/questions/15734560
复制相似问题