From b299274ad2dc3f2d8aab60939a7e93ec2a9c3454 Mon Sep 17 00:00:00 2001 From: Camden Dixie O'Brien Date: Fri, 1 Jan 2021 00:00:34 +0000 Subject: [PATCH] Configure to backup by copying --- config.org | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/config.org b/config.org index 95277ee..bb88871 100644 --- a/config.org +++ b/config.org @@ -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