概要
Windows10でSpacemacsを使っていると、新規作成したファイルのエンコードが dosになる。
僕はMacでは utf-8-unixを使っているので、Windowsでもデフォルトはそっちにしたい。毎回 set-buffer-file-coding-system ( Ctrl + x Return f)で変えるのはしんどい。
デフォルトのエンコードを変える
変える。 .spacemacs ( Space f e d)に、以下のような設定を加える。
今回は utf-8-unixで。
.spacemacs(抜粋)
(defun dotspacemacs/user-config ()
;; デフォルトのエンコードをUTF8にする
(set-default-coding-systems 'utf-8-unix)
)