Change Emacs Default Coding System

后端 未结 7 1497
-上瘾入骨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:32

    This works for me:

    (setq ruby-insert-encoding-magic-comment nil)
    

    As suggested here

    I believe you're correct that it only happens in ruby-mode. It seems ruby-mode is trying to be helpful by adding the line, which makes Ruby detect the source file encoding automatically.

提交回复
热议问题