all repos — nixfiles @ 8c21318c5383e63477dc94986e9052eeb108d601

System and user configuration, managed by nix and home-manager

emacs: add raycast script to open Emacs.app with shell environment
Alan Pearce alan@alanpearce.eu
Thu, 25 Apr 2024 17:19:54 +0200
commit

8c21318c5383e63477dc94986e9052eeb108d601

parent

05f1915d0e71aee815c6a44d03e5ef1f2e18491d

2 files changed, 16 insertions(+), 0 deletions(-)

jump to
A 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\""
M user/settings/emacs.nixuser/settings/emacs.nix
@@ -175,6 +175,10 @@ };   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;
   };