Emacs is treating my Scala code as shell scripts due to an incorrect mimetype being set:
file -I Hello.scala
Hello.scala: text/x-shellscript; charset=us-ascii
I tried changing the Open with...
information for the file, but Mac still uses the wrong mimetype. How can I fix the mimetype, preferably with a Terminal.app command?
cp
andcat
both copy over the source mimetype, so it's not easy to get around this issue by making a new file and copying the source into it.