查看Emacs编码格式

M-x describe-coding-system

设置当前buffer编码格式

M-x revert-buffer-with-coding-system

可以在.emacs文件中加入

;;设置默认读入文件编码

(prefer-coding-system 'utf-8)

;;设置写入文件编码

(setq default-buffer-file-coding-system 'utf-8)

发现此博文写得更详细

相关文章:

  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
  • 2021-08-29
  • 2021-12-13
  • 2022-12-23
猜你喜欢
  • 2021-11-30
  • 2021-11-28
  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
  • 2022-02-09
  • 2022-02-24
相关资源
相似解决方案