I am trying to get electric indent behaviour in bazel BUILD files. These are essentially python files, although the structure is extremely simple.
Let me give you an example:
cc_binary(
name = "hello-world",
srcs = ["hello-world.cc"],
deps = [
":hello-greet",
"//lib:hello-time",
],
)
What I want is to have electric indentation behaviour for "]" and ")".
What I have tried is:
- to add these characters to
electric-indent-chars
- to add
electric-indent-post-self-insert-function
topost-self-insert-hook
Neither of these steps seems to change the behaviour of the characters. What am I doing wrong?