unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* better shells flow and integration
@ 2015-02-01 19:35 andrea crotti
  2015-02-01 22:30 ` Robert Thorpe
  0 siblings, 1 reply; 2+ messages in thread
From: andrea crotti @ 2015-02-01 19:35 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

Hi guys,
I'm in a weird mix situation in the way I use terminals.

I try to stay all the time inside emacs using shell-mode, which has the
great advantage of copying and pasting around easily and have all the
text transformation things in place.

However sometimes it's not all good, because:
- it's a bit hard to organize terminals in an easy and coherent way
  (could make more frames but it's a bit annoying)

- running long term processes is a bit risky if I have to restart the
  window manager or Emacs for some reason

- when some command has a LOT of output (sometimes unexpectedly) the
  shell buffer become unresponsive for a while (this is an issue with
  other repl as well), and in plus the shell becomes very slow after I
  have a lot of output there (thousands of lines).


So for some things I tend to use tmux and terminator, which are cool but
are not inside Emacs sadly.

Trying to find some ways to improve the flow:
1. is there a way to avoid these unresponsive moments and/or limit the
   number of lines in the shell (or other similar) buffer?

2. alternatively maybe can I integrate Emacs and tmux?
   Actually as soon as I thought about this I found a few things:
   http://bradylove.com/blog/2013/05/24/commanding-tmux-with-emacs/
   And a couple of packages in ELPA, so I'll try that out.

It would be nice to have a bidirectional integration though, so be able
to see also what's happening in the tmux sessions from Emacs.

Any suggestions?



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: better shells flow and integration
  2015-02-01 19:35 better shells flow and integration andrea crotti
@ 2015-02-01 22:30 ` Robert Thorpe
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Thorpe @ 2015-02-01 22:30 UTC (permalink / raw)
  To: andrea crotti; +Cc: help-gnu-emacs

andrea crotti <andrea.crotti.0@gmail.com> writes:
...
> So for some things I tend to use tmux and terminator, which are cool but
> are not inside Emacs sadly.
>
> Trying to find some ways to improve the flow:
> 1. is there a way to avoid these unresponsive moments and/or limit the
>    number of lines in the shell (or other similar) buffer?
>
> 2. alternatively maybe can I integrate Emacs and tmux?
>    Actually as soon as I thought about this I found a few things:
>    http://bradylove.com/blog/2013/05/24/commanding-tmux-with-emacs/
>    And a couple of packages in ELPA, so I'll try that out.

You can run GNU Screen inside an Emacs term or ansi-term.  I expect you
can do the same with Tmux.  There's a bit about doing it with Screen
here http://www.emacswiki.org/emacs/GnuScreen , there are couple of
gotchas and things you have to setup in Screen's rc file.  This way, if
you have to reboot X and/or Emacs then you can reconnect to the Screen
session.

I think disconnecting from the virtual terminal that's churning out all
the output should fix the responsiveness of Emacs.  But, when your
actually viewing a lot of data I think Emacs will be slower using M-x
term and Screen than using M-x shell.

BR,
Robert Thorpe



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-02-01 22:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-01 19:35 better shells flow and integration andrea crotti
2015-02-01 22:30 ` Robert Thorpe

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).