How do you configure the indentation to work correctly for tcsh shell scripts?
I am unable to make the indentation work correctly when I use the shell-script-mode as it is.
Problem: An indentation of 4 spaces is inserted when I hit enter (when there shouldn't be any indentation!)
How to reproduce this problem?
- Open
\emacs -q&
- Type
#!/bin/tcsh -f
in an empty buffer and save it as something likea.csh
so that theshell-script-mode
is auto-loaded.
When you hit enter at the end of this first and only line, the buffer converts from
#!/bin/tcsh -f (no indentation)
to
#!/bin/tcsh -f (with indentation)
I am on the stable 24.4 version of emacs.