Update utf-8 settings
This commit is contained in:
parent
02aeb16991
commit
164251b1d2
1 changed files with 9 additions and 3 deletions
12
init.el
12
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)
|
||||
|
|
Loading…
Add table
Reference in a new issue