custom.el的备份与同步

请教一下,大家的custom.el都如何备份和同步呢?

希望能够在windows和Linux下共用一个custom.el.但是,没有找到更好的办法。

坚果云,免费、稳定,最适合同步配置文件了,每个月有1G上传、3G下载流量,我台式机、笔记本都是linux和win10双系统,不论在哪个下面修改了emacs的配置,其他系统开机后基本瞬间就同步过来了

有小对勾的就表示同步完成了

aaa

github

大家都是整个.emacs.d目录备份么?? 不需要更新吗?

我的 Emacs 配置,当然是备份整个 .emacs.d, 需要更新就 push 到 github,拿到一台新的电脑,那就:

git clone my-repo ~/.emacs.d

很方便嘛

你的配置里面也没有custom.el啊?我是直接使用别人的配置的。所以,有可能还需要从别人的库里面更新代码。

我这样使用对吗?比较正式的方式应该怎么做呢?

不知道你的custom.el里放的是什么,如果是形如

(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )

这样的内容的话,你应该每次都使用 M-x customize生成。而不是直接添加这个文件

PS: 备份代码,我只推荐GitHub……

https://github.com/samrayleung/emacs.d/blob/master/lisp/custom.el

我有custom.el 我只是自定义了文件路径而已.我还是建议你维护自己的配置,当你使用别人的配置,别人的配置并不是100%适合你自己的,你可能需要自己改动,把这些改动保存下来,慢慢就会变成你的配置了

是的,我的配置都写在custom.el中了。但是,还想与最新代码保持一致,所以比较纠结。

大概了解了,谢谢。