reddit / emacs

dtache - Version 0.4

squirelpower · 2022-01-24 11:18
Hi everyone, There is a version 0.4 out for the **dtache** package. The short description of the package is that it provides the possibility to run commands that are detached from Emacs. To read more see the README here [https://gitlab.com/niklaseklund/dtache](https://gitlab.com/niklaseklund/dtache). The major changes compared to the last release is: - **dtache** now integrates with the built in **notifications** library and this is used as default now for all users - **dtache** now uses **filenotify** to monitor the decoupled processes. This is done for both local and remote commands. - **dtache** now fully supports users on **macOS** - **dtache** now is pre-configured with bindings in its minor/major-modes in order to simplify configurations for the users - **dtache** is now available on **ELPA**, **MELPA** and as a **Guix** package ELPA: http://elpa.gnu.org/packages/dtache.html MELPA: https://melpa.org/#/dtache
noman_032018 · 2022-01-24 17:35
Nice work.
crepehesitancylust · 2022-01-24 18:59
awesome, was waiting for it to be added to elpa :) i have a followup question to one i posed in an earlier reddit thread: the original q was if dtache can manage dtach sessions that were initiated outside of emacs (ie. via terminal). author's answer was 'no.' My followup q is: if I start a dtach session with dtache and I kill emacs, will I be able to manage the session in a new emacs instance? Edit: just installed and saw that I can!! :) Thanks!
squirelpower · 2022-01-24 19:11
Thanks! :) Yes that's the idea as you discovered. The dtach processes are represented as lisp objects in datche, and those objects are written to file to make them persistent. So the package will load those object in when Emacs is restarted and that's how the package can regain the knowledge about those dtach processes :)
squirelpower · 2022-01-24 19:21
Thanks!
ayams02 · 2022-01-25 01:27
Awesome package! Sorry for my question, but is it like vterm? I am pretty new to Emacs.
squirelpower · 2022-01-25 08:30
Welcome to the Emacs world :). Vterm is an package to run a terminal emulator inside Emacs. Dtache integrates into the Emacs shell/eshell packages. So instead of using vterm + tmux. One can use shell+dtache, and rely on Emacs to be the user interface for session management and so forth :)