Browse Source

fix my-term

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

+ 5
- 4
emacs.el View File

@@ -1789,10 +1789,11 @@ if arg given, use that eshell buffer, otherwise make new eshell buffer."
(if (eq system-type 'windows-nt) (if (eq system-type 'windows-nt)
(eshell) (eshell)
(if (require 'multi-term nil t) (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 () (defun my-delete-frame-or-kill-emacs ()
"delete frame when opening multiple frame, kill emacs when only one." "delete frame when opening multiple frame, kill emacs when only one."


Loading…
Cancel
Save