Emacs: combine auto-save and backup variables
This commit is contained in:
parent
550e2fe1cc
commit
603c7255ee
1 changed files with 5 additions and 5 deletions
|
@ -55,11 +55,11 @@
|
||||||
;; Save backup files in ~/.emacs-autosaves/
|
;; Save backup files in ~/.emacs-autosaves/
|
||||||
(defvar user-temporary-file-directory "~/.emacs-autosaves")
|
(defvar user-temporary-file-directory "~/.emacs-autosaves")
|
||||||
(make-directory user-temporary-file-directory t)
|
(make-directory user-temporary-file-directory t)
|
||||||
(setq backup-by-copying t)
|
(setq backup-by-copying t
|
||||||
(setq backup-directory-alist `(("." . ,user-temporary-file-directory)
|
backup-directory-alist `(("." . ,user-temporary-file-directory)
|
||||||
(tramp-file-name-regexp nil)))
|
(tramp-file-name-regexp nil))
|
||||||
(setq auto-save-list-file-prefix (concat user-temporary-file-directory ".auto-saves-"))
|
auto-save-list-file-prefix (concat user-temporary-file-directory ".auto-saves-")
|
||||||
(setq auto-save-file-name-transforms `((".*" ,user-temporary-file-directory t)))
|
auto-save-file-name-transforms `((".*" ,user-temporary-file-directory t)))
|
||||||
|
|
||||||
;; set default input encoding
|
;; set default input encoding
|
||||||
(prefer-coding-system 'utf-8-unix)
|
(prefer-coding-system 'utf-8-unix)
|
||||||
|
|
Loading…
Reference in a new issue