From 2ff45b3dc80d2c8a5ded47596d914cd2a3f0bd69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Wed, 15 May 2019 16:03:36 -0500 Subject: [PATCH] organize utf-8 --- modules/init-gui.el | 13 +++++++++++++ settings.el | 3 --- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/modules/init-gui.el b/modules/init-gui.el index 8b8eef9..ba3320b 100644 --- a/modules/init-gui.el +++ b/modules/init-gui.el @@ -16,6 +16,19 @@ (setq make-backup-files nil) ; stop creating backup~ files (setq auto-save-default nil) ; stop creating #autosave# files +;;------------------------------ +;; Core settings | UTF-8 please +;;------------------------------ +(set-charset-priority 'unicode) +(set-language-environment "UTF-8") +(set-terminal-coding-system 'utf-8) ; pretty +(set-keyboard-coding-system 'utf-8) ; pretty +(set-selection-coding-system 'utf-8) ; please +(prefer-coding-system 'utf-8) ; with sugar on top +(setq locale-coding-system 'utf-8) ; pretty +(setq default-process-coding-system '(utf-8-unix . utf-8-unix)) +(setq-default buffer-file-coding-system 'utf-8-auto-unix) + ;;---------------------------------------------------------------------------- ;; Editor configuration ;;---------------------------------------------------------------------------- diff --git a/settings.el b/settings.el index 0cc91b4..779ba69 100644 --- a/settings.el +++ b/settings.el @@ -5,9 +5,6 @@ (setq user-full-name "Jesús E.") (setq user-mail-address "heckyel@hyperbola.info") -(set-language-environment "UTF-8") -(prefer-coding-system 'utf-8) -(setq-default buffer-file-coding-system 'utf-8-auto-unix) ;; Local Variables: ;; byte-compile-warnings: (not free-vars)