I have customized the variable sh-indentation with 4, but in one file I would like to use a different value. So I defined a file variable:
# -*- mode: sh; sh-indentation: 2; -*-
But the result is not what I have expected. When I open the file the values are:
sh-indentation is a variable defined in `sh-script.el'.
Its value is 2
Original value was 4
Local in buffer .szi; global value is 4
The file variable seems to set the global value but not the buffer local value.
How can I set the buffer local value with the file variable?