自动备份文件的设置 不工作

我在自己的配置里加入了下面的代码,但是它不工作,有没有人知道是什么原因啊?是不是与spacemacs的已有配置冲突啊?

(setq make-backup-files t
      backup-by-copying t               ; don't clobber symlinks
      backup-directory-alist
      '(("~/.emacs.d/.backups/"))       ; don't litter my fs tree
      delete-old-versions t
      kept-new-versions 6
      kept-old-versions 2
      version-control t                 ; use versioned backups
      )

spacemacs 已经有自动备份的设置的。 dotspacemacs 里面可以设置备份路径

   ;; Location where to auto-save files. Possible values are `original' to
   ;; auto-save the file in-place, `cache' to auto-save the file to another
   ;; file stored in the cache directory and `nil' to disable auto-saving.
   ;; (default 'cache)
   dotspacemacs-auto-save-file-location 'cache

我想实现下面的功能,它自己的备份实现不了,而且,它的那个auto save好像不是这个功能 kept-new-versions 6 kept-old-versions 2

这个是版本控制吧。类似的功能在layer里面把version-control加进去可以使用。具体使用方法看README对应的文档。

哦,好的,我刚才看了一下,我的设置部分生效了,kept-new-versions 6生效了,但是backup-directory-alist '(("~/.emacs.d/.backups/")没有生效,改为backup-directory-alist '(("." . “~/.emacs.d/.backups”))就可以了,文件名会加上一些“!”,就是还原的时候不够方便