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: Tmux replacement or integration with Emacs. Date: Wed, 3 Feb 2021 12:30:07 +0800 Message-ID: References: <87im7cfjln.fsf@zoho.eu> <87o8h3eo1w.fsf@zoho.eu> 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="7618"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 03 05:31:27 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 1l79p8-0001sC-7E for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 03 Feb 2021 05:31:26 +0100 Original-Received: from localhost ([::1]:55930 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l79p7-0003RH-9Q for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 02 Feb 2021 23:31:25 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34140) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l79o8-0003R5-0k for help-gnu-emacs@gnu.org; Tue, 02 Feb 2021 23:30:24 -0500 Original-Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]:40130) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l79o6-0003EQ-9Y for help-gnu-emacs@gnu.org; Tue, 02 Feb 2021 23:30:23 -0500 Original-Received: by mail-lf1-x133.google.com with SMTP id v24so31407358lfr.7 for ; Tue, 02 Feb 2021 20:30:21 -0800 (PST) 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; bh=3QbA8WocpS87Qi9A4fZUiymCfCrcl5Kr1tq9pB/yfQU=; b=bJ70TW9cEKAAtuWn3U811ZVtwqXIEYuuo+tIjcgF4/0ZePNYNv+BzB4voaEDiIoIbe l27928Y01my47ytB9FT5H5EmSq7bcu1opNOwUhEEVbWnQxWm9Gmc8gbaS+lW9TERzsil /NpImmt94NKQWhx3Clzt4qE6HetZ+RrVUkCNC6/FxHf0FxesSvQyTu8ff/cl38F6SUuV i3/5lkVHFhV7Zjjj1fHOazV4hg9pW1emPhpdhKb1UyA3a2cXE+oo9CaoHK966Ceatpv5 ca49OOn6G37+rJLsDIrOuwBv7KH3yMpc/Sxw8ls84h05KPhjT9gPEMK03ZowR4d+zSzU dHAw== 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; bh=3QbA8WocpS87Qi9A4fZUiymCfCrcl5Kr1tq9pB/yfQU=; b=CKqM320ahPc5W6pSbKzRFt5Q8ZQpOJTpraWX27abRLtn9bOFhIPuhD+qovcwQFlB2N BN+khqGIcon9rEMj4Oy0sMse//ddCqWCRTJC/JHn4930ct9VEitiWRBCv+uGAlvCZBn7 Zom0NM4BolYortFSM0Xg/o6pDm+BTzrU03ymWNcoBmN20AlBvMBnzAi6DeiYzV7gkX3S ygcDp+jsw36BGI/c2yPHxjH/3RD7VpR5cQ/b8Vtk5tu2KTieRC0PROgnyGFAjKh4B/R3 XYvnLyztDmNKkdH/D8cX+S38pY5o4b196V6at73D2Z+/EZuNqqvqnxnFwt+O6uIOCh2w cORg== X-Gm-Message-State: AOAM532d9PCFB3VghPvMLoIasZPvl4xl5L9oq7s6R2Knwu79M6Bg/sRL yPYFWPyh5+dCNrVvXaw6Whz6zqqrFSP+7sTynpHn1hAUxt7uKg== X-Google-Smtp-Source: ABdhPJy4Qxq+8H451InUOJqLjqQ91nfG36Uh+zIM8XnwSMugGSKxM9/xaYkyaQQmj+IYay1vtZq1YBQhDSn/ZcNplRs= X-Received: by 2002:ac2:4ade:: with SMTP id m30mr743833lfp.231.1612326618931; Tue, 02 Feb 2021 20:30:18 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::133; envelope-from=hongyi.zhao@gmail.com; helo=mail-lf1-x133.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:127573 Archived-At: On Wed, Feb 3, 2021 at 12:13 PM Jean Louis wrote: > > * moasenwood--- via Users list for the GNU Emacs text editor [2021-02-01 19:44]: > > Jean Louis wrote: > > > > >> No doubt, as tmux is a terminal multiplexer and Emacs is an, > > >> uhm, text editor. tmux is still great to have around. It feels > > >> like everyone uses tmux these days. And so do I. > > > > > > Emacs is replaceable with `screen' and `tmux' in the > > > functional sense. Maybe Emacs does not have best terminal > > > emulation, but practically users can run multiple shell > > > sessions and Terminal within one Emacs daemon, they may sign > > > off and log in again with sessions remaining intact. > > > > Yeah, but do you manage to navigate between them in a way that > > don't get too complicated and you end up like lost in Emacs? > > I switch to buffers to avoid end up being lost. It may be that same > operation causes the feeling of being lost. But I got used to it. > > In Emacs X Window Manager EXWM I will often use workspace 1 for email, > 3 for Internet browser, maybe 5 for graphics, shell is on workspace 9 > and so on. In `screen' I will also sometimes designate screen numbers > and remember them by its operation. > > When I really wish to remember a file, I put it in the register or > bookmark. Like {C-x r j s} holds important file for me. I don't know > why I like "jump to register" sometimes more than a simple bookmark. > > Maybe because I learned how to set it: > > (set-register ?s '(file . "~/Documents/Org/my-file.org")) What's the meaning of the `?' used above? > I even have some other hard to decipher settings to jump to register: > > (set-register ?S #s(kmacro-register [134217848 115 104 101 108 108 return])) ;; M-x shell > (set-register ?e #s(kmacro-register [134217848 101 115 104 101 108 108 return])) ;; M-x eshell > (set-register ?p #s(kmacro-register [134217848 115 113 108 45 112 111 115 tab return])) ;; sql-postgres Really obscure for me to understand. Any more hints/notes for the meaning of them? Regards, HY > Of course when use learns few needed buffers and key bindings that is > how one does not get lost. > > Jean > -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Polytechnic University of Science and Technology engineering NO. 552 North Gangtie Road, Xingtai, China