fix dtrt-indent hook config for terraform-mode, add hcl-mode
it seems that terraform-mode, while it DOES provide terraform-indent-level, that doesn't seem to be what actually sets the indent level currently? possibly a bug in terraform-mode, but setting hcl-indent-level (since hcl-mode is a dependency of terraform-mode ...) fixes this for now, so just set them both.
This commit is contained in:
parent
ddc468848a
commit
19504c074e
|
@ -149,7 +149,9 @@
|
|||
(yaml-ts-mode default (yaml-indent-offset tab-width))
|
||||
(php-mode c/c++/java (c-basic-offset tab-width))
|
||||
(nxml-mode sgml (nxml-child-indent tab-width))
|
||||
(terraform-mode default (terraform-indent-level tab-width))
|
||||
(terraform-mode default (terraform-indent-level tab-width
|
||||
hcl-indent-level tab-width))
|
||||
(hcl-mode default (hcl-indent-level tab-width))
|
||||
)
|
||||
(eval 'dtrt-indent-hook-mapping-list)))
|
||||
(dtrt-indent-global-mode t))
|
||||
|
|
Loading…
Reference in a new issue