Windows 10 (64 bit), Emacs 25.1
I want when I save any file to save them (by default) with coding system = UTF-8.
So In my init.el I has :
(prefer-coding-system 'utf-8) (set-default-coding-systems 'utf-8) (set-language-environment 'utf-8) (set-selection-coding-system 'utf-8) But it not help. When I try to save file (C-x C-s) Emacs prompt me: "Select coding system"
(prefer-coding-system 'utf-8-unix)in my config (Windows 10, Emacs 25.2) and it works fine. Your code also seems fine, so it is likely something else.'utf-8-unix,utf-8should be fine.