diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-08-11 05:18:32 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-08-11 05:19:14 +0200 |
commit | 9ebf0dd0cda6c3472c548d8de2202cc65e6c62fe (patch) | |
tree | d611e603071c8f6c4bb9845755a0e631fb6b0e49 /.config/emacs | |
parent | 369a2d40c184f53a795728fa9f9128367ae52518 (diff) |
emacs: Do better backups
Diffstat (limited to '.config/emacs')
-rw-r--r-- | .config/emacs/config.org | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/.config/emacs/config.org b/.config/emacs/config.org index 4096b6b..0128e2b 100644 --- a/.config/emacs/config.org +++ b/.config/emacs/config.org @@ -40,7 +40,7 @@ is simply because I need to use them here. #+END_SRC -** TODO XDG Directories +** XDG Directories We want to define variables for the main XDG directories for Emacs to use. These are nice for keeping things organized and out of the way. @@ -84,8 +84,6 @@ We also need to ensure our directories actually exist. We don’t want to have all sorts of random garbage populating the configuartion directory; let’s throw it all in the cache directory instead. -# TODO: https://stackoverflow.com/a/151946 - #+BEGIN_SRC elisp (setq user-emacs-directory mm-cache-directory @@ -919,3 +917,17 @@ this file. #+END_SRC +** Backup Files + +It’s always good to have backups. I would know — I’ve wiped both =~= and +=~/.config= before! Despite the name, ~version-control~ actually just adds +version numbers to the backup names — it doesn’t start using a VCS. + +#+BEGIN_SRC elisp + + (setq delete-old-versions t + version-control t + kept-new-versions 2 + kept-old-versions 6) + +#+END_SRC |