Last active
August 29, 2015 14:10
-
-
Save fire/efb4e372f68e72d3e5d7 to your computer and use it in GitHub Desktop.
How to setup emacs on Windows.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ftype emacsclient=C:\ProgramData\chocolatey\bin\emacsclient.exe --alternate-editor C:\ProgramData\chocolatey\bin\runemacs.exe -n "%*" | |
assoc .cs= emacsclient | |
Setbat to be invisible and with icon. | |
:::::::::::::::::::::::::::::::::::::::::::::::::: | |
::: | |
::: Emacsclient startup script runemacsclientw.bat | |
::: Robert Adesam, [email protected] | |
::: http://www.adesam.se/robert/ | |
::: | |
::: N.B. Alot of this is reused from other Emacs | |
::: users that have published stuff on the | |
::: Internet. Thank you! :) | |
:::::::::::::::::::::::::::::::::::::::::::::::::: | |
@echo off | |
:: Set the path to where the Emacs binaries are | |
set binpath=C:\ProgramData\chocolatey\bin\ | |
:: If no arg is given set filename to desktop | |
if "%~1"=="" ( | |
set filename=%HOMEPATH%\Desktop | |
) else ( | |
set filename=%~1 | |
) | |
:: Run Emacsclient | |
"%binpath%\emacsclientw.exe" --no-wait --alternate-editor="%binpath%\runemacs.exe" "%filename%" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment