标签:pac expand 方便 turtle scala name 内容 which 多个
有多个emacs配置,或者说经常把emacs.d文件从一台机器复制到另一台上。每次都把.emacs.d文件都放到~/目录下有点不方便了。
可以新建~/.emacs.d/init.el文件,输入一下内容,指定配置文件的目录即可
(package-initialize)
(defconst user-emacs-directory
(file-name-directory (file-chase-links (expand-file-name "~/zb_conf/emacs.d.purcell/" )))
"The giant turtle on which the world rests.")
(load-file (expand-file-name "init.el" user-emacs-directory))
把"~/zb_conf/emacs.d.purcell/" 换成你的emacs.d的路径。
windows下可能需要这种格式,例如放在D盘下,则用“//?/d:/emacs.d/”
标签:pac expand 方便 turtle scala name 内容 which 多个
原文地址:https://www.cnblogs.com/cppddz/p/emacs.html