diff options
author | Alan Pearce | 2024-04-25 17:19:54 +0200 |
---|---|---|
committer | Alan Pearce | 2024-04-25 17:19:54 +0200 |
commit | 8c21318c5383e63477dc94986e9052eeb108d601 (patch) | |
tree | 92f0cc38beeca202f0f0129a035fe444edf3d4cb | |
parent | 05f1915d0e71aee815c6a44d03e5ef1f2e18491d (diff) | |
download | nixfiles-8c21318c5383e63477dc94986e9052eeb108d601.tar.lz nixfiles-8c21318c5383e63477dc94986e9052eeb108d601.tar.zst nixfiles-8c21318c5383e63477dc94986e9052eeb108d601.zip |
emacs: add raycast script to open Emacs.app with shell environment
-rwxr-xr-x | user/emacs/raycast-script.applescript | 12 | ||||
-rw-r--r-- | user/settings/emacs.nix | 4 |
2 files changed, 16 insertions, 0 deletions
diff --git a/user/emacs/raycast-script.applescript b/user/emacs/raycast-script.applescript new file mode 100755 index 00000000..d2e97c95 --- /dev/null +++ b/user/emacs/raycast-script.applescript @@ -0,0 +1,12 @@ +#!/usr/bin/osascript + +# Required parameters: +# @raycast.schemaVersion 1 +# @raycast.title Emacs +# @raycast.mode silent + +# Optional parameters: +# @raycast.icon https://www.gnu.org/software/emacs/images/emacs.png +# @raycast.packageName Emacs + +do shell script "$SHELL -c \"open -a ~/.nix-profile/Applications/Emacs.app\"" diff --git a/user/settings/emacs.nix b/user/settings/emacs.nix index 72125c95..4b74f7ca 100644 --- a/user/settings/emacs.nix +++ b/user/settings/emacs.nix @@ -175,6 +175,10 @@ in home.packages = with pkgs; [ editorScript ]; + xdg.configFile."raycast/scripts/Emacs" = { + executable = true; + source = ../emacs/raycast-script.applescript; + }; xdg.configFile."emacs/early-init.el" = { source = ../emacs/early-init.el; }; |