mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user