commit b67e95724ef350c3a517422cb8292970f698de05
parent 965c0ee87b486fe3a56629826cbbd140486bd1fc
Author: Cem Keylan <cem@ckyln.com>
Date: Wed, 4 Mar 2020 00:15:42 +0300
load the custom file only if it is there
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/init.org b/init.org
@@ -130,10 +130,11 @@ my cache folder.
(setq custom-file "~/.cache/emacs-custom.el")
#+END_SRC
-Let's load the custom-file
+Let's load the custom-file if it is there
#+BEGIN_SRC emacs-lisp
-(load custom-file)
+(when (file-exists-p custom-file)
+(load custom-file))
#+END_SRC
** Private file