summaryrefslogtreecommitdiffstats
path: root/2022/talks/detached.md
blob: b5bf552902f2d11cdb78460a7a7d8e256cdc5d39 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
[[!sidebar content=""]]
[[!meta title="Getting detached from Emacs"]]
[[!meta copyright="Copyright © 2022 Niklas Eklund"]]
[[!inline pages="internal(2022/info/detached-nav)" raw="yes"]]

<!-- Initially generated with emacsconf-generate-talk-page and then left alone for manual editing -->
<!-- You can manually edit this file to update the abstract, add links, etc. --->


# Getting detached from Emacs
Niklas Eklund (he/him, <mailto:niklas.eklund@posteo.net>)

[[!inline pages="internal(2022/info/detached-before)" raw="yes"]]

As an enthusiastic Emacs user I would find myself replacing the usage
of an external terminal emulator with the Emacs alternative
interfaces. This included using packages such as dired for file
management, magit for git and proced for processes. However I always
kept a terminal around for running shell commands. These were
commands that I knew would either, take a long time to run, produce a
lot of rapid text output or that I would run on a remote machine. In
the remote case I would rely on tmux to be able to detach and let the
command run even when I wasn't connected.

To rid me of the need for the terminal emulator in these situations I
developed the detached.el package. It is a package that builds on top
of the dtach program, which provides the ability to detach and
re-attach to processes, to offload Emacs from these processes. The
package seamlessly integrates the ability to detach and attach into
Emacs, and offers integration with many built in features such as
shell, eshell, compile, org and dired.

In this talk I will demonstrate the features of this alternative way
to run detached processes and how the package can leverage built in
Emacs functionality to provide a great experience. The user interface
will be showcased and how the processes essentially becomes text,
which fits very well into Emacs.

# Bio

- Blog: <https://niklaseklund.srht.site/>
- Source code: <https://sr.ht/~niklaseklund/>

My name is Niklas Eklund. I am 35 years young and I live in Gothenburg
(Sweden) with my wife and our dog. In my daily work, I write code in
C++ and Python. My free time I dedicate to music, board-games, improvement,
and of course, Emacs.

More than 4 years has passed since I first started using Emacs and
there is so much to like about it: its community, the ethics and how
it encourage me to experiment and explore. Whether it is about writing
a small function, or a package, the ability to mold Emacs to what
makes sense to us as individuals is something to cherish.

[[!inline pages="internal(2022/info/detached-after)" raw="yes"]]

[[!inline pages="internal(2022/info/detached-nav)" raw="yes"]]