Configure to backup by copying

This commit is contained in:
Camden Dixie O'Brien 2021-01-01 00:00:34 +00:00
parent 7267897019
commit b299274ad2

View File

@ -656,3 +656,14 @@
(make-directory "~/.emacs-tmp/backup" t)
(setq backup-directory-alist '(("." . "~/.emacs-tmp/backup")))
#+end_src
** Backup by Copying
By default Emacs moves a file to the backup location and then
creates a copy in the original location, which apart from being a
very strange thing to do also messes up hard links. Setting
[[help:backup-by-copying][backup-by-copying]] changes it to the more obvious behaviour of
simply copying the file to the backup location.
#+begin_src emacs-lisp
(setq backup-by-copying t)
#+end_src