aboutsummaryrefslogtreecommitdiff
path: root/macos.local
diff options
context:
space:
mode:
authorJacob Janzen <jacob.a.s.janzen@gmail.com>2024-12-16 11:15:00 -0600
committerJacob Janzen <jacob.a.s.janzen@gmail.com>2024-12-16 11:15:00 -0600
commit354ac38840d0a70d144293f52a3554b49fee67ff (patch)
treefa5c29d8d555ad32463d2e789ac80793570f2730 /macos.local
parent8a3a4c819c680c28e89f388f96a264c77ab35d37 (diff)
system changes
Diffstat (limited to 'macos.local')
-rw-r--r--macos.local/.flake/home/programs/emacs/core.nix.org32
1 files changed, 32 insertions, 0 deletions
diff --git a/macos.local/.flake/home/programs/emacs/core.nix.org b/macos.local/.flake/home/programs/emacs/core.nix.org
index 78bd9e0..9a49a4c 100644
--- a/macos.local/.flake/home/programs/emacs/core.nix.org
+++ b/macos.local/.flake/home/programs/emacs/core.nix.org
@@ -24,5 +24,37 @@
'';
};
};
+
+ nixpkgs.overlays = [
+ (final: prev:
+ {
+ emacs29-pgtk = prev.emacs29-pgtk.overrideAttrs (old: {
+ patches =
+ (old.patches or [])
+ ++ [
+ # Fix OS window role (needed for window managers like yabai)
+ (prev.fetchpatch {
+ url = "https://raw.githubusercontent.com/d12frosted/homebrew-emacs-plus/master/patches/emacs-28/fix-window-role.patch";
+ sha256 = "0c41rgpi19vr9ai740g09lka3nkjk48ppqyqdnncjrkfgvm2710z";
+ })
+ # Enable rounded window with no decoration
+ (prev.fetchpatch {
+ url = "https://raw.githubusercontent.com/d12frosted/homebrew-emacs-plus/master/patches/emacs-29/round-undecorated-frame.patch";
+ sha256 = "111i0r3ahs0f52z15aaa3chlq7ardqnzpwp8r57kfsmnmg6c2nhf";
+ })
+ # Make Emacs aware of OS-level light/dark mode
+ (prev.fetchpatch {
+ url = "https://raw.githubusercontent.com/d12frosted/homebrew-emacs-plus/master/patches/emacs-28/system-appearance.patch";
+ sha256 = "14ndp2fqqc95s70fwhpxq58y8qqj4gzvvffp77snm2xk76c1bvnn";
+ })
+ ];
+ });
+ }
+ )
+ ];
+ programs.emacs = {
+ enable = true;
+ package = pkgs.emacs29-pgtk;
+ };
}
#+end_src