From 4bece9bb0cc5e0a3c184f048def9a418d1588dd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tr=C3=A9meur?= Date: Thu, 23 Feb 2023 18:22:53 +0000 Subject: [PATCH] This will fix it --- config.org | 13 ------------- init.el | 6 ++++++ 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/config.org b/config.org index 46b377e..cff5e35 100644 --- a/config.org +++ b/config.org @@ -1,16 +1,3 @@ -* It's not 1986 - -Set everything to UTF-8. I use accented characters regularly. This has to be done first for Windows reasons. - -#+BEGIN_SRC emacs-lisp - (prefer-coding-system 'utf-8) - (set-default-coding-systems 'utf-8) - (set-language-environment 'utf-8) - (if (string-equal system-type "windows-nt") - (set-selection-coding-system 'utf-16-le) - (set-selection-coding-system 'utf-8)) -#+END_SRC - * Systems and custom functions Firstly, tell Emacs where to look for custom functions (via [[https://www.emacswiki.org/emacs/LoadingLispFiles][EmacsWiki]]). diff --git a/init.el b/init.el index d4b751f..0fd96b2 100644 --- a/init.el +++ b/init.el @@ -1 +1,7 @@ +(prefer-coding-system 'utf-8) +(set-default-coding-systems 'utf-8) +(set-language-environment 'utf-8) +(if (string-equal system-type "windows-nt") + (set-selection-coding-system 'utf-16-le) + (set-selection-coding-system 'utf-8)) (org-babel-load-file "~/.emacs.d/config.org")