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

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

Re: Tmux replacement or integration with Emacs.


From: Hongyi Zhao
Subject: Re: Tmux replacement or integration with Emacs.
Date: Wed, 3 Feb 2021 12:30:07 +0800

On Wed, Feb 3, 2021 at 12:13 PM Jean Louis <bugs@gnu.support> wrote:
>
> * moasenwood--- via Users list for the GNU Emacs text editor 
> <help-gnu-emacs@gnu.org> [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 <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic University of Science and Technology engineering
NO. 552 North Gangtie Road, Xingtai, China



reply via email to

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