News for hackers. Stuff that matters.
Re:Emacs in odd places by crankyoldcrank on Monday November 16, 2020 @03:04PM (#25116334)
In Emacs, add (start-server) to your config. Then in your shell rc file:

alias vim='emacsclient -a/usr/bin/vim -nw'

Now if emacs is running you'll get emacs in the terminal when you use the command vim to open a file. If it's not running, vim opens it instead.

Super slick for converts from the vim workflow

Re:Emacs in odd places by Jtsummers on Monday November 16, 2020 @05:58PM (#25118185)
I think using the `--daemon` flag is better. Especially because you can then name the server session. I do this with an unnamed daemon for general use, but a project or language name for other efforts. It helps keep my configurations and buffers cleanly separated based on context.