Fix #1557: Add auto-completion to puppet
This commit is contained in:
parent
c786435fd2
commit
76e3bdf4fc
9
contrib/config/puppet/config.el
Normal file
9
contrib/config/puppet/config.el
Normal 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)
|
|
@ -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))
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue