如何设置显示当前文件编码

看着费劲就顺手改了吧:

内容太多的话可以先只(add-to-list 'mode-line-format '(:eval (format " %s" buffer-file-coding-system)))把encoding加到最前面,其他不变

2 个赞