spacemacs/layers/+tools/terraform
syl20bnr 29c78ce841 Defer packages by default using use-package-always-defer
Warning now `:defer t` is implied, to force a package to load `:demand t` is
now necessary.
2018-02-27 23:32:52 -05:00
..
img Replace +config-files category by +tools category 2016-06-09 23:56:09 -04:00
config.el Happy New Year 2018! 2018-01-04 02:00:25 -05:00
packages.el Defer packages by default using use-package-always-defer 2018-02-27 23:32:52 -05:00
README.org Fix doc for terraform, perforce, elfeed and evil-snipe layer 2018-01-08 01:44:19 -05:00

Terraform layer

/TakeV/spacemacs/media/commit/ed1cccd3196ff033551ddc303f74c80a640a0eb0/layers/+tools/terraform/img/terraform.png

Description

This layer provides basic support for Terraform .tf files.

Features:

  • Basic syntax highlighting via terraform-mode
  • Auto formatting on save via terraform fmt

Install

To use this configuration layer, add it to your ~/.spacemacs. You will need to add terraform to the existing dotspacemacs-configuration-layers list in this file.

You will also need a working native terraform installation on your system.

Configuration

Auto-format on save

If you want terraform fmt to be applied automatically on save then set the layer variable terraform-auto-format-on-save to t:

  (terraform :variables terraform-auto-format-on-save t)