Last active
May 31, 2021 23:47
-
-
Save rksm/af240f497c6bb97b32950c0eb1118727 to your computer and use it in GitHub Desktop.
small init.el
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defvar rk/backup-dir (expand-file-name "backup" user-emacs-directory)) | |
(unless (file-exists-p rk/backup-dir) | |
(mkdir rk/backup-dir)) | |
(setq | |
backup-by-copying t ; don't clobber symlinks | |
delete-old-versions t | |
kept-new-versions 6 | |
kept-old-versions 2 | |
version-control t ; use versioned backups | |
backup-directory-alist | |
`((".*" . ,rk/backup-dir)) | |
auto-save-file-name-transforms | |
`((".*" ,rk/backup-dir t))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment