From 4bad31779db7452283f782dbca247c456ce27fbc Mon Sep 17 00:00:00 2001 From: syl20bnr Date: Sat, 4 Oct 2014 23:14:12 -0400 Subject: [PATCH] Check for existence of layer configration files Now it is not mandatory to create all the files of a configuration layer (i.e. if you define no new functions in your layer, you are not compelled to create it). --- core/contribsys.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/contribsys.el b/core/contribsys.el index 53b4290b4..059b49c43 100644 --- a/core/contribsys.el +++ b/core/contribsys.el @@ -63,7 +63,9 @@ initialize the extension. ") (let* ((sym (car layer)) (dir (plist-get (cdr layer) :dir))) (dolist (file files) - (load (concat dir file)))))) + (let ((file (concat dir file))) + (if (file-exists-p file) + (load file))))))) (defun contribsys/read-packages-and-extensions () "Load all packages and extensions declared in all layers and fill the