diff options
Diffstat (limited to 'macos.local/.flake/home')
-rw-r--r-- | macos.local/.flake/home/programs/emacs/core.nix.org | 11 |
1 files changed, 11 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 |