emacs-osx, now with scrumptious flakes, updated for 2024. https://github.com/NeQuissimus/emacs-osx
Go to file
amelia cuss 2285b521f2 flake: emacs-overlay: cleanup. 2024-01-21 20:06:36 +11:00
.github/workflows Update Github actions 2022-04-04 13:31:23 -04:00
emacs-source flake: release as well. 2024-01-20 20:33:26 +11:00
patches emacs-overlay: different comp patches for release/master. 2024-01-21 13:45:15 +11:00
.gitignore Update nix-channel and test CFLAGS 2021-06-24 22:22:58 +08:00
LICENSE Add LICENSE and modified README 2021-04-28 12:30:26 +08:00
README.md nequissimus github 2022-04-05 10:16:10 -04:00
emacs-overlay.nix flake: emacs-overlay: cleanup. 2024-01-21 20:06:36 +11:00
flake.lock flake: emacs-overlay: cleanup. 2024-01-21 20:06:36 +11:00
flake.nix flake: emacs-overlay: cleanup. 2024-01-21 20:06:36 +11:00

Emacs OSX

Latest HEAD Emacs Status

Features

  • Tested on Mac OSX Big Sur and Catalina
  • Works with yabai tiling window manager
  • Comes with 4 variants (with/without native-compilation, and with/without tiling support)
  • Cached builds, updated from source every 24 hours

There are 4 variants

emacsOsx

master emacs. Fresh out of https://savannah.gnu.org/projects/emacs

emacsOsxNative

master emacs, with native compilation

emacsOsxTile

emacsOsx with tiling support (may not work with posframe/childframe)

emacsOsxNativeTile

emacsOsxNative with tiling support (may not work with posframe/childframe)

Installation

Install Nix and optionally nix-darwin

No Nix knowledge required, and you do NOT need nix-darwin for this to work. Nix Darwin allows installation to /Applications folder but you could also symlink from ~/.nix-profile/Applications.

Visit this link if you haven't installed Nix already. https://nixos.org/guides/install-nix.html

Install to nix-store

# Install from cachix binaries
nix-env -iA cachix -f https://cachix.org/api/v1/install
cachix use nequissimus

# `emacsOsxNative` can be substituted with any variant (mentioned above)
nix-env -iA emacsOsxNative -f https://github.com/nequissimus/emacs-osx/archive/refs/tags/built.tar.gz

Copy to /Applications

Not required if you are using nix-darwin.

sudo rm -rf /Applications/Emacs.app
sudo cp -rL ~/.nix-profile/Applications/Emacs.app /Applications

Motivation

  • Replicate Emacs Overlay to OSX/darwin environment
  • Allow overrides of patches
  • Last but not least, for my own learning and use
  • And in future (my own custom icons)

Patches

More patches can be found below:

Note that this uses --with-ns (nextstep) and patches from "Mac Port" (see here) version will likely not work.

References

Inspired By

Gccemacs by twlz0ne

CI configuration (Github Action)

Refer https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on