2020-02-19 23:07:30 +00:00
|
|
|
;;; packages.el --- Puppet layer packages File for Spacemacs
|
2016-05-29 01:26:00 +00:00
|
|
|
;;
|
2021-03-22 20:11:29 +00:00
|
|
|
;; Copyright (c) 2012-2021 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.
|
|
|
|
;;
|
2021-03-24 03:31:44 +00:00
|
|
|
;; This program is free software; you can redistribute it and/or modify
|
|
|
|
;; it under the terms of the GNU General Public License as published by
|
|
|
|
;; the Free Software Foundation, either version 3 of the License, or
|
|
|
|
;; (at your option) any later version.
|
|
|
|
;;
|
|
|
|
;; This program is distributed in the hope that it will be useful,
|
|
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;; GNU General Public License for more details.
|
|
|
|
;;
|
|
|
|
;; You should have received a copy of the GNU General Public License
|
|
|
|
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
2016-05-29 01:26:00 +00:00
|
|
|
|
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))
|