Skip to content

Comment on Emacs in odd placesparent

Comments

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

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.