My team uses a special type of file for configuration, and I would like to auto-indent (block indent) the file using emacs.
I would like to increase the indentation by a tab size for an opening parenthesis - { or [, and decrease by a tab size for a closing parenthesis - } or ] .
For example,
files = {
file1 = first_file.txt
file2 = second_file.txt
rules = {
skip_header = 1
fast_process = 1
}
}
C-style indentation doesn't work since a line doesn't end with semi-colon.
I have studied about emacs indentation for half a day today, but still doesn't know how to do this.