I know that emacs can recognize a file by the extension, a -*- mode -*-
first line, and even by the shebang line, but what do I do if I want to override the shebang?
For example, a script that starts with
#!/usr/bin/env python2.7
...
won't be recognized by the shebang line alone. I also can't add in a -*-python-*-
line, because then the shell tries to parse it. How do I deal with this?
You put the -*- mode: python -*-
in the second line (special exception, added specifically for the shebang thingies).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With