From 84343f57aa44e7304c394333297b76c55ab65908 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 2 Mar 2019 03:53:13 -0500 Subject: [PATCH] Refactor UTF-8 setters Some were redundant --- core/core.el | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/core/core.el b/core/core.el index f208e06bb..98da9abbb 100644 --- a/core/core.el +++ b/core/core.el @@ -132,12 +132,10 @@ else (except for `window-setup-hook').") ;; UTF-8 as the default coding system (when (fboundp 'set-charset-priority) (set-charset-priority 'unicode)) ; pretty -(prefer-coding-system 'utf-8) ; pretty -(set-terminal-coding-system 'utf-8) ; pretty -(set-keyboard-coding-system 'utf-8) ; pretty -(set-selection-coding-system 'utf-8) ; perdy -(setq locale-coding-system 'utf-8) ; please -(setq-default buffer-file-coding-system 'utf-8) ; with sugar on top +(prefer-coding-system 'utf-8) ; pretty +(setq selection-coding-system 'utf-8) ; pretty +(setq locale-coding-system 'utf-8) ; please +(if IS-WINDOWS (set-w32-system-coding-system 'utf-8)) ; with sugar on top (setq-default ad-redefinition-action 'accept ; silence advised function warnings