I have these functions defined in my early-init.el
. I'm trying to change the location of where my backups are saved and keep getting a Wrong type argument stringp (djm/emacs-cache "backups/")
.
early-init.el
(Defconst user-emacs-cache "~/.cache/emacs/")
(eval-and-compile
(defun djm/emacs-path (path)
(expand-file-name path user-emacs-directory)))
(eval-and-compile
(defun djm/emacs-cache (path)
(expand-file-name path user-emacs-cache)))
init.el
(Use-package files
:ensure nil
:custom
(auto-save-file-name-transforms '((".*" (djm/emacs-cache "backups/") t)))
(backup-directory-alist '(("." . (djm/emacs-cache "backups/")))))
I change the place of a lot of files in my init file. How can I make something like this work without hardcoding it?