Skip to content

Commit bc520a4

Browse files
author
Doug Beney
committed
0.0.6 introduces a feature to keep backup files out of the user's workspace.
1 parent d901b1f commit bc520a4

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

sanemacs.el

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2-
;;; Sanemacs version 0.0.5 ;;
2+
;;; Sanemacs version 0.0.6 ;;
33
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
44

55
;;; Disable menu-bar, tool-bar, and scroll-bar
@@ -37,6 +37,16 @@
3737
(write-region "" nil custom-file))
3838
(load custom-file)
3939

40+
;;; Avoid littering the user's filesystem with backups
41+
(setq
42+
backup-by-copying t ; don't clobber symlinks
43+
backup-directory-alist
44+
'((".*" . "~/.emacs.d/saves/")) ; don't litter my fs tree
45+
delete-old-versions t
46+
kept-new-versions 6
47+
kept-old-versions 2
48+
version-control t) ; use versioned backups
49+
4050
;;; Utility functions
4151
(defun sanemacs--package-get-dependencies (pkg-to-check)
4252
(setq listofdepends nil)

0 commit comments

Comments
 (0)