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

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

Re: "Screen"-like functionality


From: Arthur Miller
Subject: Re: "Screen"-like functionality
Date: Sun, 22 Aug 2021 04:46:15 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

"Samuel Banya" <sbanya@fastmail.com> writes:

> I think most people in this thread don't understand how awesome have different
> panes of pre-selected terminals, or ncurses type programs in a specific
> designation of split panes can be. 
Or most of persons on this list have been-there done that and moved on
... Split panes = Emacs windows, you can open as many terminals in
those windows as you want. Emacs = your new tmux. Don't worry, you will
get it in time :).

>                                  I don't think the main OP is after figuring 
> out
> how to manipulate the buffer list itself.

I don't know, why don't he reply himself what he is after, if that
wasn't what he wanted?

> Just wanted to note, please check out my post with my previous research as I 
> think you'll find what you're looking for.
>
> Also, my take on default buffer management in Emacs is that it sucks by 
> default, but the iBuffer package helps a tad bit.

You are free to prefer which ever application you do ofcourse, but I
suggest you to try helm for buffer management. iBuffer is a joke
compared to helm. 

> I'll have to join this thread in that I too have been seeking something that 
> allows you to designate a couple of pre-loaded buffers, or programs loaded 
> via ansi-term or vterm that would be saved, and interacted with, just in the 
> same method on how 'tmux' does different windows of buffers.

> programs loaded via ansi-term or vterm that would be saved, and interacted 
> with

What exactly do you mean with "loaded via ansi-term" "saved" and
"interacted with"?

Loaded via ansi term? You mean when you start ansi-term or vterm you
would like to run an application? You can write very simple elisp
scripts to run programs you wish in their separate terms, try this:

(switch-to-buffer (term-ansi-make-term "*term-top*" "/bin/bash" nil "-c" "top"))

If you read your email in Emacs you can just place cursor after last
parenthesis end C-x C-e. See what happends.

By saved you mean you can switch windows and than come back or you mean
you will save those in some scripts and have same programs run again at
later time?

You can write a small elisp script to that for you, and than simply load
your script on demand with a keyboard shortcut or put it in your init
file. You will have to learn functions to manipulate windows and
buffers, but it is not very complicated to accomplish
that. Alternatively tab-bar mode might be something for you to look at.

Intersting how much tab-bar mode got promoted this night :). 



reply via email to

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