-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.el
More file actions
20 lines (18 loc) · 702 Bytes
/
init.el
File metadata and controls
20 lines (18 loc) · 702 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
(setq
backup-by-copying t ; don't clobber symlinks
backup-directory-alist
'(("." . "~/.saves/")) ; don't litter my source tree
delete-old-versions t
kept-new-versions 6 ; version counts
kept-old-versions 2
version-control t) ; use versioned backups
(message "Deleting old backup files...") ; everthing older than a week
(let ((week (* 60 60 24 7))
(current (float-time (current-time))))
(dolist (file (directory-files temporary-file-directory t))
(when (and (backup-file-name-p file)
(> (- current (float-time (fifth (file-attributes file))))
week))
(message "%s" file)
(delete-file file))))
(setq-default indent-tabs-mode nil) ; use spaces instead of tabs