Haven't found a way to indent/autoformat HOCON config files. What is you way here?
I'm fairly certain there isn't an Emacs major mode for HOCON. But it looks like it's similar to JavaScript, so you can make .hocon
load as JavaScript by adding this to your .emacs
:
(add-to-list 'auto-mode-alist '("\\.hocon\\'" . javascript-mode))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With