From c39f6e4b98391b780bea2caa3f458fca3eeafacb Mon Sep 17 00:00:00 2001 From: syl20bnr Date: Sun, 10 May 2015 12:12:12 -0400 Subject: [PATCH] puppet layer: Remove conditional sexp for post-init-company It is not needed in this case because a post-init does not mark the package as used (so if there is not init function for company it won't be installed and the post-init function won't be evaluated) --- contrib/config/puppet/packages.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/contrib/config/puppet/packages.el b/contrib/config/puppet/packages.el index 76f3d1303..300ac0d4c 100644 --- a/contrib/config/puppet/packages.el +++ b/contrib/config/puppet/packages.el @@ -34,7 +34,5 @@ "ml" 'puppet-lint )))) -(when (configuration-layer/layer-usedp 'auto-completion) - (defun puppet/post-init-company () - (spacemacs|add-company-hook puppet-mode)) -) +(defun puppet/post-init-company () + (spacemacs|add-company-hook puppet-mode))