From 86ee95f9300e67babf62df50eea7e73c22e026f9 Mon Sep 17 00:00:00 2001 From: larstvei Date: Wed, 21 Jun 2023 17:35:28 +0200 Subject: [PATCH] Set (and move) preferred coding system to utf-8 Setting the default-input-method to "TeX" has been for nothing for a very long time. The `set-language-environment` overwrites the default-input-method. --- init.org | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/init.org b/init.org index f00a4b0..430a5aa 100644 --- a/init.org +++ b/init.org @@ -201,6 +201,15 @@ These are what /I/ consider to be saner defaults. + Set =utf-8= as preferred coding system. + + #+begin_src emacs-lisp + + (set-language-environment "UTF-8") + (prefer-coding-system 'utf-8) + + #+end_src + We can set variables to whatever value we'd like using =setq=. #+begin_src emacs-lisp @@ -284,14 +293,6 @@ #+end_src - Set =utf-8= as preferred coding system. - - #+begin_src emacs-lisp - - (set-language-environment "UTF-8") - - #+end_src - By default the =narrow-to-region= command is disabled and issues a warning, because it might confuse new users. I find it useful sometimes, and don't want to be warned.