2016-05-29 01:26:00 +00:00
|
|
|
;;; layers.el --- Puppet layer packages File for Spacemacs
|
|
|
|
;;
|
|
|
|
;; Copyright (c) 2012-2016 Sylvain Benner & Contributors
|
|
|
|
;;
|
|
|
|
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
|
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
|
|
;;
|
|
|
|
;; This file is not part of GNU Emacs.
|
|
|
|
;;
|
|
|
|
;;; License: GPLv3
|
|
|
|
|
2015-04-19 03:40:24 +00:00
|
|
|
(setq puppet-packages
|
2015-01-08 19:25:46 +00:00
|
|
|
'(
|
2015-05-09 14:31:47 +00:00
|
|
|
company
|
2015-07-02 20:19:11 +00:00
|
|
|
flycheck
|
2015-12-17 19:37:13 +00:00
|
|
|
puppet-mode
|
2015-04-19 03:40:24 +00:00
|
|
|
))
|
2015-01-08 19:25:46 +00:00
|
|
|
|
|
|
|
(defun puppet/init-puppet-mode ()
|
|
|
|
(use-package puppet-mode
|
|
|
|
:defer t
|
|
|
|
:init
|
|
|
|
(progn
|
2015-11-18 00:38:05 +00:00
|
|
|
(spacemacs/set-leader-keys-for-major-mode 'puppet-mode
|
|
|
|
"{" 'beginning-of-defun
|
|
|
|
"}" 'end-of-defun
|
|
|
|
"$" 'puppet-interpolate
|
|
|
|
"a" 'puppet-align-block
|
|
|
|
"'" 'puppet-toggle-string-quotes
|
|
|
|
";" 'puppet-clear-string
|
|
|
|
"j" 'imenu
|
|
|
|
"c" 'puppet-apply
|
|
|
|
"v" 'puppet-validate
|
|
|
|
"l" 'puppet-lint
|
2015-01-08 19:25:46 +00:00
|
|
|
))))
|
2015-05-09 14:31:47 +00:00
|
|
|
|
2015-05-10 16:12:12 +00:00
|
|
|
(defun puppet/post-init-company ()
|
2017-01-02 05:39:04 +00:00
|
|
|
(spacemacs|add-company-backends :modes puppet-mode))
|
2015-06-12 05:43:44 +00:00
|
|
|
|
2015-07-02 20:19:11 +00:00
|
|
|
(defun puppet/post-init-flycheck ()
|
2016-01-27 20:08:25 +00:00
|
|
|
(spacemacs/add-flycheck-hook 'puppet-mode))
|