From 164251b1d271884d55e4c7597608b64441f6045b Mon Sep 17 00:00:00 2001 From: Marcus Kammer Date: Sun, 15 Sep 2024 12:28:22 +0200 Subject: [PATCH] Update utf-8 settings --- init.el | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/init.el b/init.el index cc0ffd1b..fcfe14c0 100755 --- a/init.el +++ b/init.el @@ -82,11 +82,17 @@ ;; (fido-mode 1) ; replace icomplete mode ;; (fido-vertical-mode 1) ;; UTF-8 FTW -(prefer-coding-system 'utf-8-unix) -(set-default-coding-systems 'utf-8-unix) +;; Prefer UTF-8 encoding +(prefer-coding-system 'utf-8) +(set-default-coding-systems 'utf-8) (set-terminal-coding-system 'utf-8) (set-keyboard-coding-system 'utf-8) -(setq-default default-buffer-file-coding-system 'utf-8-unix) +;; Treat clipboard input as UTF-8 string first; compound text next, etc. +(setq x-select-request-type '(UTF8_STRING COMPOUND_TEXT TEXT STRING)) +;; Set default file encoding to UTF-8 +(setq-default buffer-file-coding-system 'utf-8) +;; Force UTF-8 for new files +(setq default-buffer-file-coding-system 'utf-8) (setenv "PYTHONIOENCODING" "UTF-8") (when (eq system-type 'gnu/linux)