3 ms·
Emacs is why I can't go back to terminals.
by agentultra 1y ago
Emacs is why I can't go back to terminals.
- vyaa 1y agoI haven’t delved into emacs yet. Don’t you still have it configure it and all its tools?
- School-Cotton 1y agoemacs is a lot easier to configure than anything else IMO because it’s self-documenting. If you want to know how to use or configure some command it’s trivially easy to jump to the source code of that command and just see how it works (or modify it, step through it with a debugger, etc). You can’t do that in any other environment as far as I’m aware. That said, yeah, it certainly doesn’t Just Work out of the box the way something like vscode does.
- jynelson 1y agoyes!! i would love an environment where every binary carries a mapping from the exe back to the source code, DWARF is kinda this but there's very little tooling around it and distros often don't ship it by default. i want something like gdbserver but built into the editor and terminal.
- School-Cotton 1y agoThat is also my dream; doing as much as possible inside emacs, using plugins written in emacs lisp, is basically the closest you can get to it today.
- klntsky 1y agoThere are modifications of emacs that appeal to normies like spacemacs
- iLemming 1y agoWith Emacs one can do some shit in terminal that otherwise would just sound absurd. Like - in Emacs' Eshell, one can pipe results in and out of buffers, e.g., you can run a command, then pipe it to grep/ripgrep, then pipe the results into a buffer (without any intermediate files). - Conversely, you can read a buffer content and pipe it into a command. - Or you can do simple calculations, you just need to use prefix notation e.g. `* 3 42` or `(* 2 pi)`. - You can run regular emacs functions, like `dired .` or `magit-status`, `find-file ~/foo` or `(calendar)`. - Or you can use Emacs vars and functions directly, e.g., `cd $org-directory`, or `cd (projectile-project-root)`, or `mkdir (format-time-string "backup-%Y%m%d")` - You can absolutely delegate some (potentially long running) tasks to run in an outside terminal. I wrote this command eshell-send-detached-input-to-kitty¹, it uses Kitty Terminal's socket control feature. There are integrations that you can only dream about, one recent example is John Wiegley (creator of Eshell) and Karthik (author of gptel package) having to experiment with piping things in and out of LLMs. Sure, the backwards is also possible - you can emacs from a terminal, but terminaling from inside emacs is way more cooler. ___ ¹ https://github.com/agzam/.doom.d/blob/main/modules/custom/shell/autoload/eshell.el#L116 https://github.com/agzam/.doom.d/blob/main/modules/custom/sh...
- deleted 1y ago[deleted]
- adastra22 1y agoWhy is any of that absurd? That seems like typical terminal stuff.
- School-Cotton 1y agoNot really. The point is you're interacting with the full-blown Lisp development environment that is emacs and all the software it contains. A normal terminal doesn't let you reach into the internals of the software you're running in it, it just lets you chain that software together in predetermined ways.
- adastra22 1y ago