Skip to content

Instantly share code, notes, and snippets.

@Shade30
Last active March 28, 2016 15:13
Show Gist options
  • Save Shade30/275496e7e332cad5fd7f to your computer and use it in GitHub Desktop.
Save Shade30/275496e7e332cad5fd7f to your computer and use it in GitHub Desktop.
@echo off
Setlocal EnableDelayedExpansion
set CYGDIR=D:\cygwin64
set CYGBINDIR=%CYGDIR%\bin
set PATH=%PATH%;%CYGBINDIR%;%CYGDIR%\usr\local\bin;%CYGDIR%\usr\bin
cd /d %CYGDIR%\home\%USERNAME%
if [%1]==[] goto BLANK
set VAR=
for /f %%i in ('%CYGBINDIR%\cygpath.exe %*') do set VAR=!VAR! %%i
echo %VAR%
start /min %CYGBINDIR%\mintty.exe -i /bin/emacs.ico -w hide /bin/emacs %VAR%
goto DONE
:BLANK
start /min %CYGBINDIR%\mintty.exe -i /bin/emacs.ico -w hide /bin/emacs
goto DONE
:DONE
@echo off
Setlocal EnableDelayedExpansion
set CYGDIR=D:\cygwin64
set CYGBINDIR=%CYGDIR%\bin
set PATH=%PATH%;%CYGBINDIR%;%CYGDIR%\usr\local\bin;%CYGDIR%\usr\bin
cd /d %CYGDIR%\home\%USERNAME%
if [%1]==[] goto BLANK
set VAR=
for /f %%i in ('%CYGBINDIR%\cygpath.exe %*') do set VAR=!VAR! %%i
echo %VAR%
start /min %CYGBINDIR%\mintty.exe -i /bin/emacs.ico -w hide /bin/emacsclient -n -c %VAR%
goto DONE
:BLANK
rem start /min %CYGBINDIR%\mintty.exe -i /bin/emacs.ico -w hide /bin/emacsclient -n -c
goto DONE
:DONE
@echo off
Setlocal EnableDelayedExpansion
set CYGDIR=D:\cygwin64
set CYGBINDIR=%CYGDIR%\bin
set PATH=%PATH%;%CYGBINDIR%;%CYGDIR%\usr\local\bin;%CYGDIR%\usr\bin
cd /d %CYGDIR%\home\%USERNAME%
if [%1]==[] goto BLANK
set VAR=
for /f %%i in ('%CYGBINDIR%\cygpath.exe %*') do set VAR=!VAR! %%i
echo %VAR%
start /min %CYGBINDIR%\mintty.exe -i /bin/emacs.ico -w hide /bin/emacsclient -c %VAR%
goto DONE
:BLANK
rem start /min %CYGBINDIR%\mintty.exe -i /bin/emacs.ico -w hide /bin/emacsclient -c
goto DONE
:DONE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment