Hacker News new | ask | show | jobs
by crankyoldcrank 2047 days ago
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

1 comments

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.