Skip to content

Commit 3163fe3

Browse files
committed
Be more explicit when setting temporary-file-directory
The tilde doesn't seem to get handled in the same way on Windows.
1 parent 82d6a49 commit 3163fe3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lisp/temp-config.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
;; Set up where temporary, backup and auto-save files go.
66

77
;;; Code:
8-
(setq temporary-file-directory "~/.emacs.d/var/")
8+
(setq emacsd-directory (expand-file-name "~/.emacs.d"))
9+
(setq temporary-file-directory (concat emacsd-directory "/var/"))
910
(defvar auto-save-dir (concat temporary-file-directory "auto-save/"))
1011
(setq auto-save-list-file-prefix (concat auto-save-dir ".saves-"))
1112
(setq auto-save-file-name-transforms `((".*" ,auto-save-dir t)))

0 commit comments

Comments
 (0)