From c7dd14553533025fe03a565adb0face10375bd46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pankowski?= Date: Tue, 23 Jul 2019 22:44:45 +0200 Subject: [PATCH] fix: only load custom-file if it already exists --- init.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index da74e08..628b771 100644 --- a/init.el +++ b/init.el @@ -1038,4 +1038,5 @@ Argument FRAMES has the same meaning as for `set-frame-font'" (setq custom-file "~/.emacs.d/custom.el") -(load custom-file) +(if (file-exists-p custom-file) + (load custom-file))