aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/init-gui.el13
-rw-r--r--settings.el3
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)