fix(core): Auto-save folder was not being set correctly

Due to the value being set not ending with a slash, auto-save files were
being stores in `~/.emacs.d/cache` instead of
`~/.emacs.d/cache/autosave`.

The fix was to add a slash at the end, and also to ensure the directory
exists.
This commit is contained in:
2020-02-22 23:42:11 +00:00
parent a3fcbcdaf9
commit fdfdbc16f4

View File

@@ -55,9 +55,12 @@
`((".*" . ,(expand-file-name "backup" siren-cache-dir))))
;; Auto-save files
(setq auto-save-interval 20
auto-save-file-name-transforms
`((".*" ,(expand-file-name "autosave" siren-cache-dir) t)))
(let ((auto-save-dir (expand-file-name "autosave/" siren-cache-dir)))
(unless (file-exists-p auto-save-dir)
(make-directory auto-save-dir))
(setq auto-save-interval 20
auto-save-file-name-transforms
`((".*" ,auto-save-dir t))))
;; smart tab behavior - indent or complete
(setq tab-always-indent 'complete)