From 3d195120e9cf01b4544d02176711b56ecd48f8eb Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 23 Nov 2020 13:41:23 -0600 Subject: Set default file encodings This requires more research. --- config.org | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'config.org') diff --git a/config.org b/config.org index 14ef1cd..0d8324d 100644 --- a/config.org +++ b/config.org @@ -511,6 +511,22 @@ By default, Emacs loads themes on top of each other. I don't want that, so let' * General editing +** File encoding + +I'm going to be honest -- most of this is a stab in the dark. + +#+begin_src emacs-lisp + (prefer-coding-system 'utf-8-unix) + (set-default-coding-systems 'utf-8-unix) + (set-terminal-coding-system 'utf-8-unix) + (set-keyboard-coding-system 'utf-8-unix) + (set-selection-coding-system 'utf-8-unix) + (set-file-name-coding-system 'utf-8-unix) + (set-clipboard-coding-system 'utf-8-unix) + (set-buffer-file-coding-system 'utf-8-unix) + (cuss locale-coding-system 'utf-8-unix) + (cuss x-select-request-type '(UTF8_STRING COMPOUND_TEXT TEXT STRING)) +#+end_src ** Undo #+begin_src emacs-lisp -- cgit 1.4.1-21-gabe81