From 8e57752bc7d55961a035e388cf4f74c33209cef3 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Tue, 17 Oct 2017 22:21:10 +0200 Subject: [PATCH] [Misc] Only load custom.el when present --- init.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index 132cc45..2e00558 100644 --- a/init.el +++ b/init.el @@ -311,7 +311,8 @@ _h_ _l_ _o_k _y_ank :tag "Personal settings") (setq custom-file (expand-file-name "custom.el" emacs-d)) -(load-file custom-file) +(when (file-exists-p custom-file) + (load-file custom-file)) (use-package cl-lib) (use-package subr-x)