Browse Source

always popup buffer when my-term

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

+ 7
- 5
emacs.el View File

@@ -1716,11 +1716,13 @@ if arg given, use that eshell buffer, otherwise make new eshell buffer."
(buffer-name my-term))
(pop-to-buffer my-term)
(setq my-term
(if (eq system-type 'windows-nt)
(eshell)
(if (require 'multi-term nil t)
(multi-term)
(ansi-term shell-file-name))))))
(save-window-excursion
(if (eq system-type 'windows-nt)
(eshell)
(if (require 'multi-term nil t)
(multi-term)
(ansi-term shell-file-name)))))
(my-term)))

(defun my-delete-frame-or-kill-emacs ()
"delete frame when opening multiple frame, kill emacs when only one."


Loading…
Cancel
Save