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")