Emacsã®M-x shellã§zshã使ãè¨å®
.zshrcã®è¨å®å 容ã«ãã£ã¦ã¯ãEmacsã®M-x shellã§ã¯åä½ããªããªããããã¯ãzleãããã£ã¦ãããããã ãã©ãzshã§ãEmacsã®ä¸ã§åããæ¹æ³ã¯ããã以ä¸ã®è¡ã.zshrcã«å ¥ããã ãã§ããã
[[ $EMACS = t ]] && unsetopt zle
ãã®è¨å®ã¯ç°å¢å¤æ° EMACS ã t ã§ãããªãã° zle ã使ããªãããã¨ããæå³ãã§ãç°å¢å¤æ° EMACS ã¯èª°ãè¨å®ãã¦ãããã¨ãã㨠comint.el ã® comint-exec-1 ã ã以ä¸ã®é¨åã§ç°å¢å¤æ°ãè¨å®ãã¦ããã
(let ((process-environment (nconc ;; If using termcap, we specify `emacs' as the terminal type ;; because that lets us specify a width. ;; If using terminfo, we specify `dumb' because that is ;; a defined terminal type. `emacs' is not a defined terminal type ;; and there is no way for us to define it here. ;; Some programs that use terminfo get very confused ;; if TERM is not a valid terminal type. ;; ;; There is similar code in compile.el. (if (and (boundp 'system-uses-terminfo) system-uses-terminfo) (list "TERM=dumb" "TERMCAP=" (format "COLUMNS=%d" (window-width))) (list "TERM=emacs" (format "TERMCAP=emacs:co#%d:tc=unknown:" (window-width)))) (unless (getenv "EMACS") (list "EMACS=t")) (list (format "INSIDE_EMACS=%s,comint" emacs-version)) process-environment)) ç¥
zleãããã£ã¦ããM-x shellãåããªããªã£ããã諦ãã¦ããã®ã ããå©ãã£ãããã£ã¨çåã解ãããã
zshã®ã¨ã¹ã±ã¼ãã·ã¼ã±ã³ã¹ãæå¹ãªå ´åã¯ä»¥ä¸ã®è¨å®ããããansi-colorã§ã¨ã¹ã±ã¼ãã·ã¼ã±ã³ã¹ãfontifyããè¨å®ã
(autoload 'ansi-color-for-comint-mode-on "ansi-color" "Set `ansi-color-for-comint-mode' to t." t) (add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)
å±¥æ´ã¯å
±æããç¶æ
㧠anything-complete-shell-history ã使ããããã使ãã¨ç´ ã®zshã®å±¥æ´ã貧弱ã§ãããããªããªããã ãã©éã«è£å®ã¯è²§å¼±ã ããç´ ã®zshã¨ä½µç¨ããã®ãç¾å®çã ãããã
anything.elとプラグイン等をリリース - http://rubikitch.com/に移転しました
M-x install-elisp http://www.emacswiki.org/cgi-bin/wiki/download/anything.el
M-x install-elisp http://www.emacswiki.org/cgi-bin/wiki/download/anything-config.el
M-x install-elisp http://www.emacswiki.org/cgi-bin/wiki/download/anything-match-plugin.el
M-x install-elisp http://www.emacswiki.org/cgi-bin/wiki/download/shell-history.el
M-x install-elisp http://www.emacswiki.org/cgi-bin/wiki/download/anything-complete.el