From 5782dbcc85973040eacbe46c71f2012dc56d97b0 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Wed, 28 Nov 2012 01:42:23 +0900 Subject: [PATCH] use multi-term-dedicated-open for term --- emacs.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/emacs.el b/emacs.el index 762c455..896eaa3 100644 --- a/emacs.el +++ b/emacs.el @@ -982,7 +982,9 @@ delete; o: select other; j, l: enlarge; h, k: shrink; q: quit." (and (fetch-library "http://www.emacswiki.org/emacs/download/multi-term.el" t) (require 'multi-term nil t) - (setq multi-term-switch-after-close nil)) + (setq multi-term-switch-after-close nil) + (setq multi-term-dedicated-select-after-open-p t) + (setq multi-term-dedicated-window-height 20)) (defun my-term-quit-or-send-raw () "" @@ -1786,8 +1788,8 @@ if arg given, use that eshell buffer, otherwise make new eshell buffer." (interactive) (if (eq system-type 'windows-nt) (eshell t) - (if (featurep 'multi-term) - (multi-term) + (if (require 'multi-term nil t) + (multi-term-dedicated-open) (ansi-term "/bin/bash")))) (defun my-delete-frame-or-kill-emacs ()