Unicode characters in emacs term-mode

后端 未结 3 1387
遇见更好的自我
遇见更好的自我 2020-12-14 04:33

I use ansi-term for my normal terminal sessions. I tend to use unicode characters in my prompt to do things like set the trailing character based on the type of source cont

3条回答
  •  隐瞒了意图╮
    2020-12-14 05:00

    The following worked for me:

    (add-hook 'term-exec-hook
              (function
               (lambda ()
                 (set-buffer-process-coding-system 'utf-8-unix 'utf-8-unix))))
    

    ansi-term seems to ignore the default-process-coding-system variable, so I had to set it buffer-locally after it executes my shell.

提交回复
热议问题