dotfiles/macos.local/Applications/Emacs.app/Contents/MacOS/Emacs.org
2024-10-01 17:42:59 -05:00

9 lines
299 B
Org Mode
Executable file

#+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