I want emacs to store all my backup files in the directory ~/.save
.
I put the following code into my init.el
file:
(setq backup-directory-alist `(("." . "~/.saves")))
However, this change does not take effect. The backup files are still generated in the directory where the original edited files are stored.
What am I doing wrong?
~
. You might try this: `(("." . ,(expand-file-name "~/.saves"))), to expand it to an absolute file name (or just use the absolute file name directly).C-h v
, that after Emacs startup and initialization the variable has the value you think you set?