Monday, April 8, 2013

How to open a new file in an already running emacs instance

I had been looking for this. I am jotting down probably the simplest way in case I forget in the future. First add this to your .emacs file

(server-start)

Add this alias to your ~/.bash_aliases

alias ecn='emacsclient --no-wait'

Now open a file in a running emacs instance like this.

ecn filename