Default encoding for a mode
Submitted by Saturday, 24 December, 2016 - 07:01
on
How do I set the default encoding for an edit mode?
For example: I want to create a new document in the current edit mode (CS-n) Erlang. The encoding for Erlang documents should automatically be UTF-8. This should be separate from any global default encoding.
However, I can find no way to set a default encoding for an edit mode separate from the global default encoding. This is so fundamentally obvious that I'm still looking for something I've missed.
For example: I want to create a new document in the current edit mode (CS-n) Erlang. The encoding for Erlang documents should automatically be UTF-8. This should be separate from any global default encoding.
However, I can find no way to set a default encoding for an edit mode separate from the global default encoding. This is so fundamentally obvious that I'm still looking for something I've missed.