Change Emacs Default Coding System

后端 未结 7 1370
-上瘾入骨i
-上瘾入骨i 2021-02-01 17:44

My problem stems from Emacs inserting the coding system headers into source files containing non-ascii characters:

# -*- coding: utf-8 -*-

My c

相关标签:
7条回答
  • 2021-02-01 18:48

    Update: I must admit, that I overlooked your actual question concerning the insertion of the variables, so I only answered the "howto setup UTF-8 part", sorry about this. Concerning your actual question I have nothing to add, normally emacs doesn't do this.

    maybe this blog entry helps you. Reading the documentation of coding-system-for-read and coding-system-for-write doesn't suggest that you should use it:

    coding-system-for-write is a variable defined in `C source code'.
    Its value is nil
    
    Documentation:
    Specify the coding system for write operations.
    Programs bind this variable with `let', but you should not set it globally.
    ...
    
    0 讨论(0)
提交回复
热议问题