News for hackers. Stuff that matters.
Re:Emacs 29 by ParetoOptimal on Tuesday November 29, 2022 @11:53AM (#33789995)
1. project.el and tabspaces

2. I think you'll want to write some elisp for this. I use apheleia though, maybe it does this?

3. async-shell-command or... hmm... there is a emacs binding to a go library for managing async processes I can't recall the name of.

4. vterm is best in the sense of most support for ncurses things. I personally try to use eshell for everything. As far as different tabs/splits emacs should be able to do that. Can you give a specific example of something you had trouble with?

Re:Emacs 29 by modernerd on Tuesday November 29, 2022 @01:15PM (#33791076)
Thanks for these tips! I'll explore tabspaces, apheleia, async-shell-command (and the Go lib) — all of those are new to me.

> Can you give a specific example of something you had trouble with?

I hoped to recreate multiple long-running terminal sessions in splits and tabs, similar to functionality I now use from:

Neovim (plugin): https://github.com/akinsho/toggleterm.nvim

VS Code (built-in): https://code.visualstudio.com/docs/terminal/basics#_managing...

I just found “popper”, which didn't exist the last time I looked. It seems like a pretty close substitute:

https://github.com/karthink/popper

Re:Emacs 29 by ParetoOptimal on Tuesday November 29, 2022 @10:12PM (#33796565)
> I hoped to recreate multiple long-running terminal sessions in splits and tabs, similar to functionality I now use from:

> Neovim (plugin): https://github.com/akinsho/toggleterm.nvim

> VS Code (built-in): https://code.visualstudio.com/docs/terminal/basics#_managing...

The example in that vscode link can be replicated in emacs by:

1. having a single buffer open 2. C-x 2 (split-window-below) 3. C-x o (other-buffer) 4. C-x 3 (split-window-right) 5. C-x 3 (split-window-right) 6. C-x + (balance windows)

If that seems unwieldy you can also make a macro to automate such a thing or anything your imagination can come up with. Then any function you make (such as saving that macro to a name) can be bound to a keybinding of your choice.

If that's interesting to you, also see "Keyboard Macros are Misunderstood":

https://www.masteringemacs.org/article/keyboard-macros-are-m...

In fact, if you really want to understand Emacs in addition to replicating your current vscode workflow or even to augment your current workflows you should check out his book that was recently updated for Emacs 28:

https://www.masteringemacs.org/book#free-sample

He typically updates the book pretty quickly, so you'll get any future updates he may make. I still highly recommend the current version after having ready 5 or 6 chapters recently and feeling like I leveled up my own understanding.

Re:Emacs 29 by modernerd on Wednesday November 30, 2022 @01:58AM (#33797775)
Thank you for this — keyboard macros look great, and I'll explore the book to fill in some gaps.
Re:Emacs 29 by ziotom78 on Friday December 02, 2022 @03:38AM (#33828209)
Thanks for suggesting "vterm", I wasn't aware of its existence. I just installed it, it seems to work perfectly!