emacs: Keep file backups in separate directory
This commit is contained in:
parent
90dfa3bdf8
commit
59ba867d51
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
|
/backups/
|
||||||
/tree-sitter/
|
/tree-sitter/
|
||||||
/var/
|
/var/
|
||||||
|
1
init.el
1
init.el
@ -21,6 +21,7 @@
|
|||||||
(setq show-trailing-whitespace t)
|
(setq show-trailing-whitespace t)
|
||||||
|
|
||||||
(setq backup-by-copying t)
|
(setq backup-by-copying t)
|
||||||
|
(setq backup-directory-alist '(("." . "~/.emacs.d/backups")))
|
||||||
|
|
||||||
(set-default-coding-systems 'utf-8)
|
(set-default-coding-systems 'utf-8)
|
||||||
(set-keyboard-coding-system 'utf-8)
|
(set-keyboard-coding-system 'utf-8)
|
||||||
|
Loading…
Reference in New Issue
Block a user