Error of private init.el doesn't exist (it really should!)

This commit is contained in:
Henrik Lissner 2018-05-25 02:54:16 +02:00
parent 7f31f4a1bd
commit 2b8efd6783
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -468,7 +468,7 @@ added, if the file exists."
(let* ((init-file (expand-file-name "init.el" doom-private-dir))
(short-init-file (abbreviate-file-name init-file)))
(if (not (file-exists-p init-file))
(warn "%s doesn't exist" short-init-file)
(error "%s doesn't exist" short-init-file)
(with-temp-buffer
(insert-file-contents init-file)
(when (re-search-forward "^\\s-*\\((doom! \\)" nil t)