2020-02-19 23:07:30 +00:00
|
|
|
;;; packages.el --- Puppet layer packages File for Spacemacs
|
2016-05-29 01:26:00 +00:00
|
|
|
;;
|
2020-09-16 21:34:40 +00:00
|
|
|
;; Copyright (c) 2012-2020 Sylvain Benner & Contributors
|
2016-05-29 01:26:00 +00:00
|
|
|
;;
|
|
|
|
;; 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
|
2018-03-04 04:37:53 +00:00
|
|
|
:defer t
|
2015-01-08 19:25:46 +00:00
|
|
|
: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 ()
|
2017-02-14 03:27:29 +00:00
|
|
|
(spacemacs/enable-flycheck 'puppet-mode))
|