This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+tools/terraform
2019-05-03 03:44:19 +03:00
..
img
config.el
packages.el Revert "Defer packages by default using use-package-always-defer" 2018-03-03 23:40:10 -05:00
README.org Add more tags 2019-05-03 03:44:19 +03:00

Terraform layer

/TakeV/spacemacs/media/commit/5d02b1c4bba2ce5b08c20731598d411c09a8acc1/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)