Peter Reavy

Edit a file from Powershell in the currently running Emacs

Posted in Uncategorized by Peter Reavy on May 22, 2012

Put this in your $profile:

function EditWithEmacs ($filename)
{
& 'C:\Program Files (x86)\emacs-23.1\bin\emacsclientw.exe' $filename
}

set-alias emacs EditWithEmacs

Then you can just type

PS> emacs mynewfile.txt

Advertisements