解决 Emacs 进入 eshell 时出现乱码的问题

在Emas使用终端:
M-x eshell RET

使用M-x shell也可以调出终端,只是可能会出现乱码,而且操作不如Emacs自身的eshell舒服。
当出现乱码时,将下面两行内容加入.emacs中:
(autoload 'ansi-color-for-comint-mode-on "ansi-color" nil t)
(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)

相关文章:

  • 2022-12-23
  • 2021-08-20
  • 2022-12-23
  • 2021-05-23
  • 2021-10-15
  • 2022-01-15
  • 2021-09-12
猜你喜欢
  • 2021-10-31
  • 2021-04-15
  • 2021-06-27
  • 2022-12-23
  • 2022-12-23
  • 2021-07-25
  • 2021-12-28
相关资源
相似解决方案