Skip to content

Instantly share code, notes, and snippets.

@x5lcfd
Last active September 13, 2018 04:16
Show Gist options
  • Save x5lcfd/f5f1d722df46f668cee61032f2a76df7 to your computer and use it in GitHub Desktop.
Save x5lcfd/f5f1d722df46f668cee61032f2a76df7 to your computer and use it in GitHub Desktop.
emacs related.
REM https://www.emacswiki.org/emacs/EmacsMsWindowsIntegration
c:\path\to\emacs\bin\emacsclientw.exe -c -n -a c:\path\to\emacs\bin\runemacs.exe
# Path to runemacs (Modify this!)
$run_server = "X:\path\to\emacs\bin\runemacs.exe --daemon"
# Path to startup file
$startup_file = "$([Environment]::GetFolderPath('Startup'))\StartEmacsServer.bat"
# Clean previous server file info first
"del /Q %HOME%/.emacs.d/server/*" > $startup_file
$run_server >> $startup_file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment