Make sure the private data directory exists

This commit is contained in:
Daniel - 2019-12-18 21:04:47 +01:00
parent ec847d606c
commit fabc890417
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 5 additions and 0 deletions

View File

@ -314,6 +314,11 @@
;; * General configuration
;; Ensure that ~/.emacs.d/private exists, because we want to store data there
(let ((private-data-dir (expand-file-name "private/" emacs-d)))
(unless (file-directory-p private-data-dir)
(make-directory private-data-dir)))
(setq custom-file
(expand-file-name "private/custom.el" emacs-d))