diff --git a/config_new.org b/config_new.org index e4e294b..43ae68b 100644 --- a/config_new.org +++ b/config_new.org @@ -285,6 +285,27 @@ (recentf-mode 1) #+end_src +** Backups + +#+BEGIN_SRC emacs-lisp +(defvar myrmi-backup-directory (concat user-emacs-directory "backups")) +(if (not (file-exists-p myrmi-backup-directory)) + (make-directory myrmi-backup-directory t) + ) +(setq backup-directory-alist `(("." . ,myrmi-backup-directory))) +(setq make-backup-files t + backup-by-copying t + version-control t + delete-old-versions t + delete-by-moving-to-trash t + kept-old-versions 6 + kept-new-versions 9 + auto-save-default t + auto-save-timeout 20 + auto-save-interval 200 + ) +#+END_SRC + ** Yes-or-no Because I'm lazy, important yes-or-no questions can be answered with y-or-n: