Move private directory creation to corresponding config section

This commit is contained in:
Daniel - 2020-09-12 11:40:01 +02:00
parent 085a57d281
commit a4daabd42c
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 5 additions and 5 deletions

10
init.el
View File

@ -63,6 +63,11 @@
(add-to-list 'load-path (expand-file-name "site-lisp" emacs-d))
;; 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)))
;; * Mode activation
@ -346,11 +351,6 @@
;; * 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)))
(use-package cl-lib)
(use-package subr-x)