????GNU Emacs ?泻??“????”???????????“???? hacker ???????????? GNU Emacs”?????????????????????????????????????????????? GNU Emacs???? Shell ?????? GNU Emacs ???????????梅????? ?? GNU Emacs ???????? Shell ?泻????????????????????????????????????????????????懈?????????? Shell-mode ???????????????锟�?????????????? GNU Emacs ?????械?????????????????????????????未?械????伞??????

????????? ????

????GNU Emacs ????????????????????????????????????写???锟�?写?????????????? ????????些????????????????????贸??????????????????些?渭?“???????”????谩???????????? GNU Emacs ??????????? Shell??

???????????????? Linux ???? Unix ???婀�????????????????????????????????????????????????????????????????????????????????????? Shell???????????? xterm??rxvt????? Putty ?????????????????????GNU Emacs ?????????????????????? ansi-term??multi-term ??????些?????????????????????????????????????????????????? Emacs ????????????? Vim??

?????????????????????????????梅??—— Shell mode??????????????????????????????????????????????????????????????????????魏? terminal ???????????????????????? Emacs ??????????????妫�???????? Shell ???薪???????械???????????写?????????????????校????? comint.el????????卸????????????????? Shell ?????Shell ????????????? comint.el????????????写?????????????????????????????????????? Emacs ???薪??? Shell ?????? ??Shell buffer????

?????????? Shell ????????????? shell mode ????????????????? Emacs ???邪??? Meta-x ??????????????????????? Alt-x ??????????????????? shell ???????Emacs ???????? Shell ???????????????????? Shell ????????Shell ?????? ????????????? *shell*??????????????? Shell ???? ??? Emacs ?????????? shell-file-name ??????????????????????????? SHELL ?? EMACSSHEL ????????????写????

??setq shell-file-name "/bin/bash"??

????????

export EMACSSHELL=/usr/bin/zsh

????????????????????????? ANSI color ?? Shell ??????????????? Emacs ?????????????????????校????????? ls – color=auto ???????????????????????? Emacs ?????????

??autoload ""ansi-color-for-comint-mode-on "ansi-color" nil t??
??add-hook ""shell-mode-hook ""ansi-color-for-comint-mode-on t??

?????????????????????????????????????????????????????? Xterm??????? Shell ?? Emacs ?????????

????????? ??? Shell mode -- ?????

?????????????????????????????????????????????????????????????

?????????????????????????????

????????????????????卸????????????????屑???????????????????????些????????????泻??????????????????????位???????锟�?????????????????????????????????????谢?????????????????????????????????????? .Xdefaults????????????????????????????????????????????小??????????????????????????????谢??????????????鑷�????????……??些????????????????????????????????????????????????? 4 ???????????????????卸??????????????……?????????????????????????????????????????妾�

???????????????????? GNU Emacs??GNU Emacs ?????????????????????????????????????? X Window????????? GNU Emacs ???????????? X Window ????????? GNU Emacs ?????????????? Ctrl-x 2 ????????????????蟹??????????????????

+----------------------+
| |
| |
+----------------------+
| |
| |
+----------------------+

???????? Ctrl-x 3?????????????????蟹????????????????????些?蟹???????????????

+----------+-----------+
| | |
| | |
+----------+-----------+
| |
| |
+----------------------+