From 01062504eadba5a05a7ecc1df93eb061e391129c Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Wed, 28 Nov 2012 01:53:09 +0900 Subject: [PATCH] fix my-term --- emacs.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/emacs.el b/emacs.el index d88a894..a5a3662 100644 --- a/emacs.el +++ b/emacs.el @@ -1756,8 +1756,8 @@ if arg given, use that eshell buffer, otherwise make new eshell buffer." (add-hook 'find-file-hook 'my-frame-buffer-add) -(add-hook 'term-mode-hook - 'my-frame-buffer-add) +;; (add-hook 'term-mode-hook +;; 'my-frame-buffer-add) (add-hook 'eshell-mode-hook 'my-frame-buffer-add) (add-hook 'Man-mode-hook @@ -1789,7 +1789,9 @@ 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) - (multi-term-dedicated-open) + (if (multi-term-dedicated-exist-p) + (multi-term-dedicated-select) + (multi-term-dedicated-open)) (ansi-term "/bin/bash")))) (defun my-delete-frame-or-kill-emacs ()