When I enter a function I get indentation like so:
function bla {
if []; then
echo
fi
The first line after the function header is indented 4 literal spaces, then after the if
line, I get a literal tab that is 8 spaces long. The real kicker is, that when I try to delete the tab before fi
, Emacs converts the tab into spaces and only deletes the first space.
Btw, I press Tab at the beginning of every indented line, because somehow Enter does not indent automatically.
EDIT: I guess I have to accept that indentation in Emacs is a little "special".