From cfb51236a57fb0db9ab8e9cc76b6af45984d9133 Mon Sep 17 00:00:00 2001 From: Andrew Guschin Date: Wed, 4 Dec 2024 11:21:54 +0400 Subject: wip: load custom.el file only if it exists --- config.org | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config.org') diff --git a/config.org b/config.org index 29d4a4b..da14055 100644 --- a/config.org +++ b/config.org @@ -86,7 +86,8 @@ I don't want this autogenerated code to be added to main config file automatical placed in its own file and won't annoy me. #+BEGIN_SRC emacs-lisp (setq custom-file (expand-file-name "custom.el" user-emacs-directory)) - (load custom-file) + (when (file-exists-p custom-file) + (load custom-file)) #+END_SRC * Package management -- cgit v1.2.3