diff options
Diffstat (limited to 'macos.local/Applications/Emacs.app/Contents/MacOS/Emacs.org')
-rwxr-xr-x | macos.local/Applications/Emacs.app/Contents/MacOS/Emacs.org | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/macos.local/Applications/Emacs.app/Contents/MacOS/Emacs.org b/macos.local/Applications/Emacs.app/Contents/MacOS/Emacs.org new file mode 100755 index 0000000..03c5152 --- /dev/null +++ b/macos.local/Applications/Emacs.app/Contents/MacOS/Emacs.org @@ -0,0 +1,9 @@ +#+title: Emacs Client Application + +#+begin_src sh :tangle ~/Applications/Emacs.app/Contents/MacOS/Emacs :mkdirp yes :tangle-mode o755 + #!/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 |