Browse Source

use multi-term-dedicated-open for term

pull/1/head
10sr 12 years ago
parent
commit
5782dbcc85
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      emacs.el

+ 5
- 3
emacs.el View File

@@ -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 ()


Loading…
Cancel
Save