fix(cli): create doom directories early

This is a regression from 948f946, where a bunch of mkdir calls were
removed prematurely. In v3, other processes are responsible for creating
these directories, but those haven't been implemented yet.

Fix: #6756
Amend: 948f9461a7
This commit is contained in:
Henrik Lissner 2022-09-07 16:46:09 +02:00
parent ceae154751
commit a0fc7bad5a
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -13,6 +13,12 @@
(setq gc-cons-threshold 134217728 ; 128mb
gc-cons-percentage 1.0) ; DEPRECATED: backported from 29
;; Create all our core directories to quell file errors.
(mapc (doom-rpartial #'make-directory 'parents)
(list doom-local-dir
doom-data-dir
doom-cache-dir))
;; UX: Ensure errors are sufficiently verbose from this point on.
(when (setq init-file-debug (getenv-internal "DEBUG"))
(setq debug-on-error t