在CentOS服务器上,运行Emacs shell执行某些命令时,会在左边出现很多奇怪的符号:
^[[0m
经过搜索,发现需要在~/.emacs文件中添加:
;;; Fix junk characters in shell-mode
(add-hook 'shell-mode-hook
'ansi-color-for-comint-mode-on)
注意,加载~/.emacs.d/init.el中对CentOS的eamcs无效。
在CentOS服务器上,运行Emacs shell执行某些命令时,会在左边出现很多奇怪的符号:
^[[0m
经过搜索,发现需要在~/.emacs文件中添加:
;;; Fix junk characters in shell-mode
(add-hook 'shell-mode-hook
'ansi-color-for-comint-mode-on)
注意,加载~/.emacs.d/init.el中对CentOS的eamcs无效。