From: Hongyi Zhao <hongyi.zhao@gmail.com>
To: "Óscar Fuentes" <ofv@wanadoo.es>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Run multiple shells in Emacs.
Date: Tue, 1 Jun 2021 07:54:54 +0800 [thread overview]
Message-ID: <CAGP6POK8Lq05ubfAPwgMijMmj9qF9DWVFO8yJqfJ_n-yVOTGiA@mail.gmail.com> (raw)
In-Reply-To: <87pmx6cws0.fsf@telefonica.net>
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
next prev parent reply other threads:[~2021-05-31 23:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-31 23:13 Run multiple shells in Emacs Hongyi Zhao
2021-05-31 23:18 ` Jean Louis
2021-05-31 23:23 ` Óscar Fuentes
2021-05-31 23:54 ` Hongyi Zhao [this message]
2021-06-01 3:23 ` Abhiseck Paira
2021-06-01 11:21 ` Leo Butler
2021-06-02 0:52 ` Hongyi Zhao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAGP6POK8Lq05ubfAPwgMijMmj9qF9DWVFO8yJqfJ_n-yVOTGiA@mail.gmail.com \
--to=hongyi.zhao@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=ofv@wanadoo.es \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).