From e6feb7cba52d29cf3427d9ddc2e9c42794ddd4e5 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sat, 26 Sep 2015 18:10:15 -0700 Subject: [PATCH] set default encodings --- dotfiles/emacs.d/init.el | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dotfiles/emacs.d/init.el b/dotfiles/emacs.d/init.el index 6e72e7e7..da01defa 100644 --- a/dotfiles/emacs.d/init.el +++ b/dotfiles/emacs.d/init.el @@ -479,6 +479,15 @@ The current directory is assumed to be the project's root otherwise." (setq echo-keystrokes 0.25) +(setq utf-translate-cjk-mode nil) ; disable CJK coding/encoding (Chinese/Japanese/Korean characters) +(set-language-environment 'utf-8) +(set-keyboard-coding-system 'utf-8-mac) ; For old Carbon emacs on OS X only +(setq locale-coding-system 'utf-8) +(set-default-coding-systems 'utf-8) +(set-terminal-coding-system 'utf-8) +(unless (eq system-type 'windows-nt) + (set-selection-coding-system 'utf-8)) +(prefer-coding-system 'utf-8) ;; ============================================================================= ;; use-package ;; =============================================================================