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

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

Re: Run multiple shells in Emacs.


From: Hongyi Zhao
Subject: Re: Run multiple shells in Emacs.
Date: Tue, 1 Jun 2021 07:54:54 +0800

On Tue, Jun 1, 2021 at 7:24 AM Óscar Fuentes <ofv@wanadoo.es> wrote:
>
> Hongyi Zhao <hongyi.zhao@gmail.com> writes:
>
> > What's the preferable way to open multiple shell windows at the same
> > time in Emacs?
> >
> > After searching with Google, I find the discussion here:
> >
> > <https://stackoverflow.com/questions/6532998/how-to-run-multiple-shells-on-emacs>
> >
> > Basically, there are two types of methods to accomplish this:
> >
> > 1. Write a simple function, just as the one suggested on the above website:
> >
> > (defun create-shell ()
> >     "creates a shell with a given name"
> >     (interactive);; "Prompt\n shell name:")
> >     (let ((shell-name (read-string "shell name: " nil)))
> >     (shell (concat "*" shell-name "*"))))
> >
> > 2. Use an Emacs plugin/package, and I've found the following one:
> > <https://github.com/manateelazycat/aweshell>.
> >
> > What are the recommended ways to use Emacs based on this kind of technique?
>
> Aweshell does a lot of things and works with Eshell, not `shell' as your
> first method.
>
> Plain `eshell' already supports multiple instances (see its docstring),
> as well as `shell' (see its docstring).
>
> So if you want to open multiple shell buffers, you don't need neither a
> new function nor a new package.
>

I want to use Emacs as an advanced terminal multiplexer similar to
tmux. Now, I find the method described here:
<https://iloveemacs.wordpress.com/2014/09/10/emacs-as-an-advanced-terminal-multiplexer/comment-page-1/>.
Any hints/comments/suggestions 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



reply via email to

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