Skip to main content
correction by a comment
Source Link
anquegi
  • 749
  • 5
  • 23

I addedAs comented by @db48x, the correct anwer for this is add to my early-init.el file the setting from this question, and finally all works as expected.

Revert buffer with coding systemsetting:

(prefer-coding-system        'utf-8)
(set-terminal-coding-system  'utf-8)
(set-keyboard-coding-system  'utf-8)
(set-selection-coding-system 'utf-8)
(setq locale-coding-system   'utf-8)
(setq-default buffer-file-codinglanguage-systemenvironment 'utf-8)

This is also the suggestion in doom emacs configuration: https://github.com/doomemacs/doomemacs/blob/7a7503045850ea83f205de6e71e6d886187f4a22/lisp/doom-start.el#L131

https://www.gnu.org/software/emacs/manual/html_node/emacs/Language-Environments.html

This also allows you to remove all the other forced encodings to UTF-8 and should be the correct configuration. If you need to configure all

so please use this setting in your emacs custom configuration

Revert buffer with coding system

I added to my early-init file the setting from this question, and finally all works as expected.

Revert buffer with coding system

(prefer-coding-system        'utf-8)
(set-terminal-coding-system  'utf-8)
(set-keyboard-coding-system  'utf-8)
(set-selection-coding-system 'utf-8)
(setq locale-coding-system   'utf-8)
(setq-default buffer-file-coding-system 'utf-8)

As comented by @db48x, the correct anwer for this is add to my early-init.el file this setting:

(set-language-environment 'utf-8)

This is also the suggestion in doom emacs configuration: https://github.com/doomemacs/doomemacs/blob/7a7503045850ea83f205de6e71e6d886187f4a22/lisp/doom-start.el#L131

https://www.gnu.org/software/emacs/manual/html_node/emacs/Language-Environments.html

This also allows you to remove all the other forced encodings to UTF-8 and should be the correct configuration. If you need to configure all

so please use this setting in your emacs custom configuration

Revert buffer with coding system

Source Link
anquegi
  • 749
  • 5
  • 23

I added to my early-init file the setting from this question, and finally all works as expected.

Revert buffer with coding system

(prefer-coding-system        'utf-8)
(set-terminal-coding-system  'utf-8)
(set-keyboard-coding-system  'utf-8)
(set-selection-coding-system 'utf-8)
(setq locale-coding-system   'utf-8)
(setq-default buffer-file-coding-system 'utf-8)