Skip to content

rockneurotiko/hclfmt_emacs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

HCL Format

Steps to make it work:

  • Configure Go and set the PATH to have the GOPATH bin. Tutorial

  • Install hclfmt go get github.com/hashicorp/hcl2/cmd/hclfmt

  • Install and setup hclmft.el

Right now the library is not on MELPA, so you can do something like this:

  • Clone this repository where you want

  • Add this to your configuration

(defun hclfmt-load ()
  (add-to-list 'load-path "~/path/hclfmt_emacs")
  (load-file "/full/path/hclfmt_emacs/hclfmt.el")
  (require 'hclfmt)
  (add-hook 'after-save-hook #'hclfmt-after-save))

(hclfmt-load)

Now when you save some HCL file it will be auto formatted.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published