From 6e52096e2d7cb214dec17b32a23b656b1f9bb57b Mon Sep 17 00:00:00 2001 From: Laurens Miers Date: Sun, 22 Sep 2024 11:48:43 +0200 Subject: [PATCH] Only load custom file if it exists --- init.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index 2676b28..2ee5b47 100644 --- a/init.el +++ b/init.el @@ -11,5 +11,6 @@ (when (file-readable-p my-config-file) (org-babel-load-file (expand-file-name my-config-file))) - (load custom-file) + (when (file-readable-p custom-file) + (load custom-file)) )