2015-05-27 18:04:52 +00:00
|
|
|
;;; packages.el --- terraform Layer packages File for Spacemacs
|
|
|
|
;;
|
2021-03-22 20:11:29 +00:00
|
|
|
;; Copyright (c) 2012-2021 Sylvain Benner & Contributors
|
2015-05-27 18:04:52 +00:00
|
|
|
;;
|
2016-01-12 02:40:54 +00:00
|
|
|
;; Author: Brian Hicks <brian@brianthicks.com>
|
2015-05-27 18:04:52 +00:00
|
|
|
;; 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/>.
|
|
|
|
|
2015-05-27 18:04:52 +00:00
|
|
|
|
2018-02-25 01:24:23 +00:00
|
|
|
(setq terraform-packages
|
|
|
|
'(
|
2020-06-22 18:57:05 +00:00
|
|
|
company
|
2018-02-25 01:24:23 +00:00
|
|
|
(company-terraform :requires company)
|
|
|
|
terraform-mode
|
|
|
|
))
|
|
|
|
|
2020-06-22 18:57:05 +00:00
|
|
|
(defun terraform/post-init-company ()
|
|
|
|
(spacemacs//terraform-setup-company))
|
|
|
|
|
2018-02-25 01:24:23 +00:00
|
|
|
(defun terraform/init-company-terraform ()
|
|
|
|
(use-package company-terraform
|
2020-06-22 18:57:05 +00:00
|
|
|
:defer t))
|
2020-06-20 07:00:02 +00:00
|
|
|
|
2015-05-27 18:04:52 +00:00
|
|
|
(defun terraform/init-terraform-mode ()
|
|
|
|
(use-package terraform-mode
|
2018-03-04 04:37:53 +00:00
|
|
|
:defer t
|
2020-06-20 07:00:02 +00:00
|
|
|
:init (add-hook 'terraform-mode-hook
|
|
|
|
'spacemacs//terraform-setup-backend)
|
2017-04-12 04:04:38 +00:00
|
|
|
:config (when terraform-auto-format-on-save
|
2018-02-25 01:24:23 +00:00
|
|
|
(add-hook 'terraform-mode-hook
|
|
|
|
'terraform-format-on-save-mode))))
|