help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Open multiple separate terminal buffers with multi-term in Emacs.


From: Joost Kremers
Subject: Re: Open multiple separate terminal buffers with multi-term in Emacs.
Date: Wed, 02 Jun 2021 08:57:08 +0200
User-agent: mu4e 1.5.12; emacs 27.2

On Wed, Jun 02 2021, Hongyi Zhao wrote:
> 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:

If all you want is to use multiple terminals, you don't need all those packages.
Only multi-term is useful for your purpose. (It's possible to do what you want
without any extra packages, but multi-term makes it easier.)

So before you install ace-jump-mode, key-chord and yasnippet, I strongly suggest
you read about what those packages do and consider whether you really want/need
them.

Now, about your question:

> Now, I can open two new terminals by pressing:
>
> C-c T
> C-x 2

This doesn't actually open two terminals. It opens one terminal and then splits
the window in two windows. Both windows show the *same* buffer, however.

The description of the multi-term package (see <https://melpa.org/#/multi-term>)
says that you can create a new term buffer with `M-x multi-term`, which you have
bound to `C-c T`. So press it once to create one terminal, press it again to
create a second one. If you want to see both terminals at once, open one
terminal, split the window (C-x 2 or C-x 3) and then open a new terminal in the
second window.

HTH

-- 
Joost Kremers
Life has its moments



reply via email to

[Prev in Thread] Current Thread [Next in Thread]