From 603c7255eebf8e76ec992ed463a823752005b616 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Fri, 23 Feb 2018 09:32:23 +0100 Subject: [PATCH] Emacs: combine auto-save and backup variables --- emacs/emacs.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/emacs/emacs.el b/emacs/emacs.el index fd1c89a..1943652 100644 --- a/emacs/emacs.el +++ b/emacs/emacs.el @@ -55,11 +55,11 @@ ;; Save backup files in ~/.emacs-autosaves/ (defvar user-temporary-file-directory "~/.emacs-autosaves") (make-directory user-temporary-file-directory t) -(setq backup-by-copying t) -(setq backup-directory-alist `(("." . ,user-temporary-file-directory) - (tramp-file-name-regexp nil))) -(setq auto-save-list-file-prefix (concat user-temporary-file-directory ".auto-saves-")) -(setq auto-save-file-name-transforms `((".*" ,user-temporary-file-directory t))) +(setq backup-by-copying t + backup-directory-alist `(("." . ,user-temporary-file-directory) + (tramp-file-name-regexp nil)) + auto-save-list-file-prefix (concat user-temporary-file-directory ".auto-saves-") + auto-save-file-name-transforms `((".*" ,user-temporary-file-directory t))) ;; set default input encoding (prefer-coding-system 'utf-8-unix)