Skip to content
Major mode of Terraform configuration file
Emacs Lisp Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
image add imenu screenshot Aug 1, 2014
.gitignore init repos Aug 1, 2014
.travis.yml Update test emacs versions Jan 1, 2017
Cask init repos Aug 1, 2014
Changes Bump up version and update Changes Jan 1, 2017
Makefile Improve default emacs path for macOS Jan 12, 2017 Add description of hcl-mode Jan 2, 2017
terraform-mode.el Add inner special block highlighting Jan 12, 2017

terraform-mode.el travis badge melpa badge melpa stable badge

Major mode of Terraform configuration file






You can install terraform-mode.el from MELPA by package.el.


  • Syntax highlighting
  • Indentation
  • imenu

Customize Variables

terraform-indent-level(Default: 2)

Indentation size. You need to call revert-buffer if you change this value outer of hook such as eval-expression.

Sample Configuration

 '(terraform-indent-level 4))

See Also

This major-mode inherits from hcl-mode. Most of syntax features, like highlighting, indentation are implemented in hcl-mode.

You can’t perform that action at this time.