diff options
author | Jacob Janzen <jacob.a.s.janzen@gmail.com> | 2024-12-15 21:49:24 -0600 |
---|---|---|
committer | Jacob Janzen <jacob.a.s.janzen@gmail.com> | 2024-12-15 21:49:24 -0600 |
commit | c4f485441a92135bf0d2829a92e7ba4f0219b0d5 (patch) | |
tree | bb49411cdf143afa2169bdb1ce99cf086e53c27e /macos.local | |
parent | 9cd1661a14b232b5cc0e7ed1d1556a2f2203506e (diff) |
move emacs.app into nix config
Diffstat (limited to 'macos.local')
-rw-r--r-- | macos.local/.flake/home/programs/emacs/core.nix.org | 11 | ||||
-rw-r--r-- | macos.local/.flake/system/homebrew.nix.org | 1 | ||||
-rwxr-xr-x | macos.local/Applications/Emacs.app/Contents/MacOS/Emacs.org | 9 |
3 files changed, 12 insertions, 9 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" diff --git a/macos.local/Applications/Emacs.app/Contents/MacOS/Emacs.org b/macos.local/Applications/Emacs.app/Contents/MacOS/Emacs.org deleted file mode 100755 index 03c5152..0000000 --- a/macos.local/Applications/Emacs.app/Contents/MacOS/Emacs.org +++ /dev/null @@ -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 |