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).
This commit is contained in:
syl20bnr 2014-10-04 23:14:12 -04:00
parent ab60f3846b
commit 4bad31779d
1 changed files with 3 additions and 1 deletions

View File

@ -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