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:
parent
ab60f3846b
commit
4bad31779d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue