Add function: contribsys/get-layer-property

This commit is contained in:
syl20bnr 2014-09-30 22:58:22 -04:00
parent b8a4b85d43
commit 21f60ff213
1 changed files with 5 additions and 0 deletions

View File

@ -167,3 +167,8 @@ dotspacemacs-configuration-layers defined in ~/.spacemacs."
(if (boundp 'dotspacemacs-configuration-layers)
(dolist (layer dotspacemacs-configuration-layers)
(contribsys/declare-layer layer t))))
(defun contribsys/get-layer-property (symlayer prop)
"Return the value of the PROPerty for the given SYMLAYER symbol."
(let* ((layer (assq symlayer spacemacs-config-layers)))
(plist-get (cdr layer) prop)))