From 4c95d2238bc22b2ffa8ef32c3ca1ec264e3113d8 Mon Sep 17 00:00:00 2001 From: syl20bnr Date: Sun, 12 Apr 2015 21:27:07 -0400 Subject: [PATCH] Set preferred coding system to utf-8 Fixes #785 --- core/core-spacemacs.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/core-spacemacs.el b/core/core-spacemacs.el index c801b42f9..1271d6d35 100644 --- a/core/core-spacemacs.el +++ b/core/core-spacemacs.el @@ -69,6 +69,9 @@ (defun spacemacs/init () "Create the special buffer for `spacemacs-mode' and perform startup initialization." + ;; explicitly set the prefered coding systems to avoid annoying prompt + ;; from emacs (especially on Microsoft Windows) + (prefer-coding-system 'utf-8) ;; dotfile init (dotspacemacs/load-file) (dotspacemacs|call-func dotspacemacs/init "Calling dotfile init...")