1 ;;; init-terraform.el --- Work with Terraform configurations -*- lexical-binding: t -*-
7 (when (maybe-require-package 'terraform-mode
)
8 ;; TODO: find/write a replacement for company-terraform
9 (with-eval-after-load 'terraform-mode
10 ;; I find formatters based on "reformatter" to be more reliable
11 ;; so I redefine `terraform-format-on-save-mode' here.
12 (when (maybe-require-package 'reformatter
)
13 (reformatter-define terraform-format
14 :program
"terraform" :args
'("fmt" "-")))))
16 (provide 'init-terraform
)
17 ;;; init-terraform.el ends here