aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apheleia.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/apheleia.el b/apheleia.el
index 2a6eed2..8091b09 100644
--- a/apheleia.el
+++ b/apheleia.el
@@ -421,7 +421,8 @@ argument, a buffer containing the output of the formatter."
(defcustom apheleia-formatters
'((black . ("black" "-"))
(prettier . (npx "prettier" file))
- (gofmt . ("gofmt")))
+ (gofmt . ("gofmt"))
+ (terraform . ("terraform" "fmt" "-")))
"Alist of code formatting commands.
The keys may be any symbols you want, and the values are
commands, lists of strings and symbols, in the format of
@@ -445,7 +446,8 @@ commands, lists of strings and symbols, in the format of
(sass-mode . prettier)
(typescript-mode . prettier)
(web-mode . prettier)
- (yaml-mode . prettier))
+ (yaml-mode . prettier)
+ (terraform-mode . terraform))
"Alist mapping major mode names to formatters to use in those modes.
This determines what formatter to use in buffers without a
setting for `apheleia-formatter'. The keys are major mode