root / trunk / packages / emacs-base / .emacs.d / common / backups.el

Revision 34, 485 bytes (checked in by docwhat, 3 years ago)

Changed highlight current line color and added backup options to different places

Line 
1;; Set all files to backup in ~/emacs.d/backups instead of
2;; in the same directory
3(setq-default backup-directory-alist
4              (list
5               (cons ".*" ; a regex, not glob
6                     (expand-file-name "~/.emacsbackup/")
7                     )
8               ))
9
10;; Preserve hard links when editing
11(setq-default backup-by-copying-when-linked t)
12
13;; Preserve owner and group of the file you're editing
14(setq-default backup-by-copying-when-mismatch t)
15
16;; EOF
Note: See TracBrowser for help on using the browser.