move emacs.app into nix config

This commit is contained in:
Jacob Janzen 2024-12-15 21:49:24 -06:00
parent 9cd1661a14
commit c4f485441a
3 changed files with 12 additions and 9 deletions

View file

@ -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

View file

@ -16,6 +16,7 @@
"binutils"
"bison"
"btop"
"choose-gui"
"clang-format"
"cmake"
"cmake-language-server"

View file

@ -1,9 +0,0 @@
#+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