解决 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)