aboutsummaryrefslogtreecommitdiff
path: root/macos.local/.flake
diff options
context:
space:
mode:
Diffstat (limited to 'macos.local/.flake')
-rw-r--r--macos.local/.flake/home/programs/emacs/core.nix.org11
-rw-r--r--macos.local/.flake/system/homebrew.nix.org1
2 files changed, 12 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 f4cdb95..78bd9e0 100644
--- a/macos.local/.flake/home/programs/emacs/core.nix.org
+++ b/macos.local/.flake/home/programs/emacs/core.nix.org
@@ -12,6 +12,17 @@
"./.config/emacs/user-interface.el".source = ./user-interface.el;
"./.config/emacs/tools.el".source = ./tools.el;
"./.config/emacs/languages.el".source = ./languages.el;
+
+ "./Applications/Emacs.app/Contents/MacOS/Emacs" = {
+ executable = true;
+ text = ''
+ #!/bin/sh
+ if ! ps -e | grep -q '[E]macs --bg-daemon'; then
+ /opt/homebrew/bin/emacs --daemon
+ fi
+ /opt/homebrew/bin/emacsclient -c &> /dev/null
+ '';
+ };
};
}
#+end_src
diff --git a/macos.local/.flake/system/homebrew.nix.org b/macos.local/.flake/system/homebrew.nix.org
index 1dcd5b4..7c93efc 100644
--- a/macos.local/.flake/system/homebrew.nix.org
+++ b/macos.local/.flake/system/homebrew.nix.org
@@ -16,6 +16,7 @@
"binutils"
"bison"
"btop"
+ "choose-gui"
"clang-format"
"cmake"
"cmake-language-server"