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!
[ Parent
| on HN ]
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)
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:)