Skip to content

xeechou/dotemacs-msbin

 
 

Repository files navigation

Emacs binaries management for Windows v0.2.0

The project originates from gromnitsky's hunspell-windows. Later I found it is perfect for maintaining x64 binaries for my Emacs usage on Windows.

Right now it includes:

  • hunspell (and dictionaries libreoffice repo)
  • riggrep;
  • SQLite;
  • ninja-build;
  • curl;
  • coreutils;
  • diffuitls;
  • binutils;

The binaries are downloaded from the MSYS2 mirrors; the libreoffice dicts are renamed to match language_territory locale names, like uk_UA or en_GB.

Softwares that you should install on Windows directly

Usage

The makefile works under Cygwin, MSYS2 or any modern Linux distro.

The easiest way to run it under Windows is to download MSYS2, run msys2.exe &:

$ pacman -S git patch curl base-devel
$ git clone ...
$ cd dotemacs-msbin
$ makepkg -s

The resulting .tar.zst (~100MB) should be in current directory

On Starting Emacs Server

I use this script to start the Emacs server, it boils down to emacsclientw.exe -n -c -a "" to start a server, then later you can use emacsclientw.exe -create-frame to start a frame.

Notes

  1. setup the TMP and TEMP variable

Windows somehow gives you ill-formed temporary path (some kind of abbreviation that I am sure), which makes temporary-file-directory variable ill-formed in Emacs, which I use to configure the org-preview-latex-image-directory. The dvipng never gets the output tex path correctly because of it.

Result artifacts

Once you have the zip you can extract it some where (eg C:/Softwares/emacs-bin) then adding bin folder to the PATH

License

MIT

About

Create an x64 windows binary bundle for emacs runtime

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • PowerShell 64.4%
  • Shell 23.1%
  • Batchfile 12.5%