Use configuration-layer/layer-decaredp in packages.el of ess layer

This commit is contained in:
syl20bnr 2015-02-10 23:23:33 -05:00
parent b2f66f80f6
commit b8d8a0fe2d

View file

@ -25,7 +25,7 @@ which require an initialization must be listed explicitly in the list.")
"List of packages to exclude.")
;; Only load company-ess if company-mode is enabled
(when (member 'company-mode dotspacemacs-configuration-layers)
(when (configuration-layer/layer-declaredp 'company-mode)
(add-to-list 'ess-packages 'company-ess))
(defun ess/init-ess ()