I want the backup files to be created in sub-directories of the files being edited, and I have created a function returns that directory.
(defun tempfilepath ()
(interactive)
(concat (file-name-directory buffer-file-name) "./editorbackups")
)
So I need backup-directory-alist
to be something like
(setq backup-directory-alist `("." . tempfilepath))
where tempfilepath
will be evaluated when the file at runtime so all the backup files are saved under the files folders.
I am not sure how to get the syntax right and the role make-backup-file-name-function
if it is necessary in this case.