Change Emacs Default Coding System

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

    First, I agree with the the original answer, but I would also add that if I had your issue I would use something like the following:

    (defun java-setup ()
      (setq tab-stop-list
            '(4 8 12 16 20 24 28 32 36 40 44 48 52 56 60 64 68 72 76 80 84 88 92)
            indent-tabs-mode nil
            tab-width 4
        fill-column 96
        buffer-file-coding-system 'utf-8-unix
        c-comment-start-regexp "\\(@\\|/\\(/\\|[*][*]?\\)\\)"))
    
    (add-hook 'java-mode-hook 'java-setup)
    

提交回复
热议问题