2010年3月9日 (火曜日)

20:59:56 # Life emacs でシェル使ってる? 手元では、現在編集しているファイルのあるディレクトリ専用のシェ ルが開始するようにしています。

(defun dshell ()
  "run shell in current directory"
  (interactive)
  (let* ((explicit-shell-file-name "/bin/dash")
	 (shell-buffer-name
	  (concat "*shell*"
		  default-directory)))
    (shell shell-buffer-name)))

	
Junichi Uekawa

$Id: dancer-diary.el,v 1.94 2009/10/21 14:02:48 dancer Exp $