From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: Open multiple separate terminal buffers with multi-term in Emacs. Date: Wed, 2 Jun 2021 17:56:01 +0800 Message-ID: References: <87k0ncd9kd.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39829"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Joost Kremers Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 02 11:56:43 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1loNcA-000A5U-UE for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 02 Jun 2021 11:56:42 +0200 Original-Received: from localhost ([::1]:38270 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loNc9-0001nu-29 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 02 Jun 2021 05:56:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42916) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loNbl-0001nd-8K for help-gnu-emacs@gnu.org; Wed, 02 Jun 2021 05:56:17 -0400 Original-Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]:45898) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1loNbi-0003i7-Kt for help-gnu-emacs@gnu.org; Wed, 02 Jun 2021 05:56:16 -0400 Original-Received: by mail-lf1-x12b.google.com with SMTP id j10so2405187lfb.12 for ; Wed, 02 Jun 2021 02:56:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6vceMUlHUfWHFAVi2gk/3SbOPcwgdN0J5Qx6SSeGFyg=; b=Ziq/vVpze8gLYErTRW1T6Xi6x7UPf24X4qgfSOUbNS/bRia1iBE55VHjxMzrw9RvLB roQd6AGdPkc9ciPtccAyptzhW0QckFqG2sSUO02YffVfCy8ztLw4uc+xJkT5JNwLwza+ xLEtr6nWHNQGZCkxffmz5ksEGg2NQpT7S2sMK491dXH/m9Hck9UMC0PIjoA3XNAXDZjA 0a6zvEomsabD9ij3LOd28wlOVY6R1e20tyK/iBV0M24gEhb1/ESH2DEl0OHrL6EQbz7w IDArgM5WrSqNAY482vkGKvdiNbl7hyuSYTvUFbxWlK50MBzinUlXhqWeg/h1DuOMhwz8 kdDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6vceMUlHUfWHFAVi2gk/3SbOPcwgdN0J5Qx6SSeGFyg=; b=isZoaJRNj6W1McOhziy5agRNAMXGF++dyI4s8e4b2hJHDe9lJE84Ptui5TeBt9eSCL aT/hO78ahD32MQ5ymxOpA/TehxDEyD22KeDz7s4Od5urMlR5tHAn73cnza60LNyJGrKt dZToSmmi/RF/Za0jjnrJeVau7/8+3pvzEs1OEX6wtthE1GfTv+KKzs4+O54fCcKLjzzb hb+58HNJHufP178jE/yIGVWASDU7D+XF3CiP0259y/yJxULV5BwBwm6jD3HXm0Im6m8K A8YUQlRzF+3PbVqAVGl+MjD2WvIj0E4X84HKDs4XnJo/0de/B+Np3IFBFRRl8yQPf9SB T6OA== X-Gm-Message-State: AOAM533A8wT463DmUw/6dEp+jDYFeO1iU6eLcSC+TOPWWxHe7OVuJdNl hToOsROEzpAdigPL0Isw4gwTceFexEn/3Z6Mjck= X-Google-Smtp-Source: ABdhPJzLu02vRwYYk8ISK/DT1FypHXfDf/cOQVcEoFL6XQmpGH4ciTHtKuzQvtcHJGblEX79yv86sZ9Gs+YvN/3nhwo= X-Received: by 2002:a05:6512:1144:: with SMTP id m4mr10134608lfg.390.1622627772501; Wed, 02 Jun 2021 02:56:12 -0700 (PDT) In-Reply-To: <87k0ncd9kd.fsf@fastmail.fm> Received-SPF: pass client-ip=2a00:1450:4864:20::12b; envelope-from=hongyi.zhao@gmail.com; helo=mail-lf1-x12b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:130494 Archived-At: On Wed, Jun 2, 2021 at 3:12 PM Joost Kremers wrote: > > > On Wed, Jun 02 2021, Hongyi Zhao wrote: > > According to the tricks mentioned here, > > , > > 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. Thank you for your sincere advice. > > 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 ) > 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. Thank you, it does the trick. Based on the author said on GitHub, : I mainly use Aweshell now, but I still maintain multi-term.el, feel free send PR to me, thank you! So, perhaps I should also give aweshell (https://github.com/manateelazycat/aweshell) a try. Regards -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering NO. 552 North Gangtie Road, Xingtai, China