From fb96831f54e7337f92e615e812797823b341b79a Mon Sep 17 00:00:00 2001 From: Ashton Wiersdorf Date: Sat, 1 Jun 2024 22:56:05 -0600 Subject: Use user-emacs-directory for backups folder Closes #3 --- init.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.el b/init.el index 585cb3e..16ba71a 100644 --- a/init.el +++ b/init.el @@ -79,7 +79,7 @@ (defun bedrock--backup-file-name (fpath) "Return a new file path of a given file path. If the new path's directories does not exist, create them." - (let* ((backupRootDir "~/.emacs.d/emacs-backup/") + (let* ((backupRootDir (concat user-emacs-directory "emacs-backup/")) (filePath (replace-regexp-in-string "[A-Za-z]:" "" fpath )) ; remove Windows driver letter in path (backupFilePath (replace-regexp-in-string "//" "/" (concat backupRootDir filePath "~") ))) (make-directory (file-name-directory backupFilePath) (file-name-directory backupFilePath)) -- cgit v1.2.3