Skip to content

Instantly share code, notes, and snippets.

@bjodah
Last active April 11, 2022 11:48
Show Gist options
  • Save bjodah/bf554c4eb6d75837c00b4ec01991da05 to your computer and use it in GitHub Desktop.
Save bjodah/bf554c4eb6d75837c00b4ec01991da05 to your computer and use it in GitHub Desktop.
Using emacs under windows
1. Install msys2 from msys2.org
2. run msys2.exe: pacman -Syu, restart, pacman -Su
3. run mingw64.exe: pamcan -S mingw-w64-x86_64-emacs
4. create C:\msys2_64\runemacs_patched_path.bat:
cmd /C "set PATH=C:\msys2_64\mingw64\bin;C:\msys2_64\usr\bin;%PATH% && C:\msys2_64\mingw64\bin\runemacs.exe --daemon"
5. Super-R shell:startup [RET]
6. Create shortcut to runemacs_patched_path.bat, call it e.g. "emacs-daemon"
7. Create a short-cut in Start menu:
C:\msys2_64\mingw64\bin\emacsclientw.exe -c -n -a "C:\msys2_64\mingw64\bin\runemacs.exe"
8. Install useful software:
pacman -S \
mingw-w64-x86_64-diffutils \
mingw-w64-x86_64-libgccjit \
mingw-w64-x86_64-ttf-dejavu \
mingw-w64-x86_64-autotools
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment