I'm trying to get Emacs to understand that my script is bash.
I tried adding -*- bash -*-
to the first line of the file, but it still opens in Shell-script[sh]
mode. I can rename the file to give it a bash extension (currently it's .sh
) but this might break some existing code.
Is there some way to give Emacs this hint?