all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Open multiple separate terminal buffers with multi-term in Emacs.
@ 2021-06-02  1:38 Hongyi Zhao
  2021-06-02  3:53 ` Jean Louis
                   ` (2 more replies)
  0 siblings, 3 replies; 29+ messages in thread
From: Hongyi Zhao @ 2021-06-02  1:38 UTC (permalink / raw)
  To: help-gnu-emacs

According to the tricks mentioned here,
<https://iloveemacs.wordpress.com/2014/09/10/emacs-as-an-advanced-terminal-multiplexer/comment-page-1/>,
I installed the following packages from melpa: multi-term,
ace-jump-mode, key-chord, and yasnippet. Then I add the following
configuration into my ~/.emacs.d/init.el:

(require 'multi-term)
(require 'ace-jump-mode)
(require 'key-chord)
(require 'yasnippet)

(key-chord-mode 1)
(setq key-chord-one-key-delay 0.15)
(key-chord-define-global "jj" 'ace-jump-mode)

(add-hook 'term-mode-hook (lambda ()
(setq yas/dont-activate nil)
(yas/minor-mode-on)
(add-to-list 'term-bind-key-alist '("C-c C-n" . multi-term-next))
(add-to-list 'term-bind-key-alist '("C-c C-p" . multi-term-prev))
(add-to-list 'term-bind-key-alist '("C-c C-j" . term-line-mode))
(add-to-list 'term-bind-key-alist '("C-c C-k" . term-char-mode))
))

(global-set-key (kbd "C-c t") 'multi-term-next)
(global-set-key (kbd "C-c T") 'multi-term)


Now, I can open two new terminals by pressing:

C-c T
C-x 2

But I noticed that the shell commands issued in one terminal will also
be shown in the other, i.e., they are the identical one. And I want to
open multiple separate terminal buffers, with which I can issue
different shell commands in them respectively and observe the
corresponding executions of them.

Any hints for this problem will be highly appreciated.

Regards
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
NO. 552 North Gangtie Road, Xingtai, China



^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2021-11-28  4:38 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-02  1:38 Open multiple separate terminal buffers with multi-term in Emacs Hongyi Zhao
2021-06-02  3:53 ` Jean Louis
2021-06-02  9:28   ` Hongyi Zhao
2021-06-02  9:35     ` Hongyi Zhao
2021-06-02  6:57 ` Joost Kremers
2021-06-02  9:56   ` Hongyi Zhao
2021-06-02 10:04     ` Joost Kremers
2021-06-02 11:07       ` Jean Louis
2021-06-02 13:09   ` Hongyi Zhao
2021-06-02 14:05     ` Hongyi Zhao
2021-11-15  7:37 ` Thien-Thi Nguyen
2021-11-15  7:44   ` Hongyi Zhao
2021-11-15  9:12     ` Thien-Thi Nguyen
2021-11-15 11:25       ` Hongyi Zhao
2021-11-15 12:12         ` Thien-Thi Nguyen
2021-11-15 23:35           ` Hongyi Zhao
2021-11-16  0:24             ` Hongyi Zhao
2021-11-17  3:26               ` Stefan Monnier via Users list for the GNU Emacs text editor
2021-11-17  4:31                 ` Hongyi Zhao
2021-11-17 14:27                   ` Stefan Monnier via Users list for the GNU Emacs text editor
2021-11-18  2:33                     ` Hongyi Zhao
2021-11-20  3:13           ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-11-26 20:56             ` Samuel Banya
2021-11-27  3:22               ` Hongyi Zhao
2021-11-27 21:45                 ` Samuel Banya
2021-11-27 21:52                   ` Samuel Banya
2021-11-28  2:59                     ` Hongyi Zhao
2021-11-27 23:04                       ` Samuel Banya
2021-11-28  4:38                     ` Emanuel Berg via Users list for the GNU Emacs text editor

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.