From f0361c6a2126f18cf11f46220d0dd23ce44ffa06 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Wed, 28 Nov 2012 01:59:16 +0900 Subject: [PATCH] fix my-term --- emacs.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/emacs.el b/emacs.el index a5a3662..a1faa9d 100644 --- a/emacs.el +++ b/emacs.el @@ -1789,10 +1789,11 @@ if arg given, use that eshell buffer, otherwise make new eshell buffer." (if (eq system-type 'windows-nt) (eshell) (if (require 'multi-term nil t) - (if (multi-term-dedicated-exist-p) - (multi-term-dedicated-select) - (multi-term-dedicated-open)) - (ansi-term "/bin/bash")))) + (progn + (unless (multi-term-dedicated-exist-p) + (multi-term-dedicated-open)) + (multi-term-dedicated-select)) + (ansi-term shell-file-name)))) (defun my-delete-frame-or-kill-emacs () "delete frame when opening multiple frame, kill emacs when only one."