Fix #1557: Add auto-completion to puppet

This commit is contained in:
Pierre Radermecker 2015-05-09 16:31:47 +02:00 committed by syl20bnr
parent c786435fd2
commit 76e3bdf4fc
2 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,9 @@
;;; config.el --- Puppet Layer configuration file for Spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
;; Variables
(spacemacs|defvar-company-backends puppet-mode)

View file

@ -2,6 +2,7 @@
'(
;; package puppets go here
puppet-mode
company
))
;; For each package, define a function puppet-mode/init-<package-puppet-mode>
@ -32,3 +33,8 @@
"mv" 'puppet-validate
"ml" 'puppet-lint
))))
(when (configuration-layer/layer-usedp 'auto-completion)
(defun puppet/post-init-company ()
(spacemacs|add-company-hook puppet-mode))
)