News for hackers. Stuff that matters.
Re:Using Emacs as $Editor by karmajunkie on Monday October 02, 2023 @10:08AM (#37738350)
yeah, this is what i use, along with a specific instance of the emacs server session to avoid cluttering up my actual editor. i think the invocation is something like `emacsclient -A “cli” -nw `
Re:Using Emacs as $Editor by bruh2 on Monday October 02, 2023 @01:45PM (#37741773)
Oh that's a great idea, this is the way. I don't use emacsclient because it has weird interaction with Doom's workspaces, but your way might solve this problem. Thanks!
Re:Using Emacs as $Editor by senkora on Monday October 02, 2023 @03:58PM (#37743638)
Does it not just start a new Doom workspace for the new frame? I’m curious because I use Doom workspaces a lot and might consider setting EDITOR=emacsclient
Re:Using Emacs as $Editor by karmajunkie on Tuesday October 03, 2023 @12:13PM (#37753853)
ok, here's my actual invocation per my .zshrc:

`alias ec="emacsclient -s console -a '' -nw -r"`

It doesn't start a new doom workspace /most/ of the time. Sometimes i'll get a new one if i've got multiple editors opening up the same file, I think. But the `-s` flag starts a console server that at least keeps those out of my main emacs window (I use the gui version from emacs-plus)

Re:Using Emacs as $Editor by bruh2 on Wednesday October 04, 2023 @02:34PM (#37769605)
It only creates a new workspace if you're connecting to your main Emacs' server. If you have a separate daemon launched with `emacs --fg-daemon=cli`, then connecting with `emacsclient --socket-name=cli` won't pollute your main Emacs with a new workspace:)