Linux Ubuntu, Emacs 26.1
I use tool "screen
" in Linux. It's very comfortable.
Has Emacs any some kind of tool?
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.
Sign up to join this communityLinux Ubuntu, Emacs 26.1
I use tool "screen
" in Linux. It's very comfortable.
Has Emacs any some kind of tool?
If I understand correctly, Emacs is that tool. Let me illustrate. In the following Ctrl + x
is denoted as C-x
and Alt + x
is denoted as M-x
(this is the standard Emacs notation).
Open a new instance of Emacs. You can create splits, similarly to screen
. To create a vertical split, press C-x 3
. To create a horizontal split, press C-x 2
. Do that and your Emacs should look like this:
Now, if you wanted to have separate terminal windows there are several options. Emacs comes with several terminal emulators: eshell
, shell
, and term
. You could open a term with M-x shell
1. For me, that opened a terminal instance in the second split:
You can go to another split with C-x o
. You could open another terminal instance if you wanted there. Or you could edit a document. Whatever your heart desires!
Hopefully you can see how Emacs itself functions as a terminal multiplexer.
I highly recommend reading the Emacs tutorial. To access it, simply open a new session of Emacs and press <RET>
. People say learning Emacs is hard, but it's as simple as opening Emacs and pressing Enter!
1 The term
command is finicky when using Windows, which I am. So, I use shell
here.
elscreen
, you'll need to create a file init.el
in your ~/.emacs.d
directory. In that file, you will need to initialize packages. Put this code on one line: (package-initialize)
. Then you'll need to add a third-party repository: (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t)
. To run these, do M-x eval-b
. That should re-index the repository. Now, you can do M-x list-packages
. Search for elscreen
. As long as your cursor is on that line, press i
to mark it for install and press x
to install it. Once installed, do M-x elscreen-start
– Lorem Ipsum
Nov 28 '18 at 16:12
screen
most useful for was re-connecting to a remote session from somewhere else, and Emacs provides for that if you run it as a server, as you canssh
from anywhere to the host running the server, and then reconnect to that Emacs session withemacsclient
. – phils Nov 29 '18 at 4:03