From 20c16a70f5e44a4924169bf25b7df48751a7ef48 Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 12 Sep 2023 12:50:47 +0200 Subject: [PATCH] fix(emacs): complete backup settings --- emacs/emacs.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/emacs/emacs.el b/emacs/emacs.el index 47fd77f..cd4ba72 100644 --- a/emacs/emacs.el +++ b/emacs/emacs.el @@ -53,9 +53,14 @@ ;; Do not spill temporary files everywhere +;; https://stackoverflow.com/a/18330742 (defvar --backup-directory (concat user-emacs-directory "backups")) (if (not (file-exists-p --backup-directory)) (make-directory --backup-directory t)) +(setq backup-directory-alist `(("." . ,--backup-directory))) + +;; https://www.reddit.com/r/emacs/comments/tejte0/undotree_bug_undotree_files_scattering_everywhere/?rdt=39892 +(setq undo-tree-history-directory-alist '(("." . "~/.emacs.d/undo"))) ;; nicer completion UI -- 2.47.3